Fix crash in SceneTreeDock when closing a scene with a selected node
This commit is contained in:
@@ -4248,6 +4248,7 @@ void EditorNode::_set_current_scene_nocheck(int p_idx) {
|
||||
Node *old_scene = get_editor_data().get_edited_scene_root();
|
||||
|
||||
editor_selection->clear();
|
||||
SceneTreeDock::get_singleton()->clear_previous_node_selection();
|
||||
editor_data.set_edited_scene(p_idx);
|
||||
|
||||
Node *new_scene = editor_data.get_edited_scene_root();
|
||||
|
||||
Reference in New Issue
Block a user