Skip to content

Commit ac20484

Browse files
committed
Clear SceneTreeDock's previous node selection when removing edited scene
1 parent 2a9ff39 commit ac20484

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

editor/editor_node.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4096,6 +4096,7 @@ bool EditorNode::is_addon_plugin_enabled(const String &p_addon) const {
40964096
void EditorNode::_remove_edited_scene(bool p_change_tab) {
40974097
// When scene gets closed no node is edited anymore, so make sure the editors are notified before nodes are freed.
40984098
hide_unused_editors(SceneTreeDock::get_singleton());
4099+
SceneTreeDock::get_singleton()->clear_previous_node_selection();
40994100

41004101
int new_index = editor_data.get_edited_scene();
41014102
int old_index = new_index;

0 commit comments

Comments
 (0)