Skip to content

Commit

Permalink
Merge pull request #80849 from KoBeWi/edit_NOTHING
Browse files Browse the repository at this point in the history
Unedit nodes early when closing scene tab
  • Loading branch information
akien-mga committed Sep 2, 2023
2 parents 2e71e55 + dd7152a commit 6042275
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3331,6 +3331,9 @@ bool EditorNode::is_addon_plugin_enabled(const String &p_addon) const {
}

void EditorNode::_remove_edited_scene(bool p_change_tab) {
// When scene gets closed no node is edited anymore, so make sure the editors are notified before nodes are freed.
hide_unused_editors(SceneTreeDock::get_singleton());

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

Expand Down

0 comments on commit 6042275

Please sign in to comment.