Merge pull request #80849 from KoBeWi/edit_NOTHING

Unedit nodes early when closing scene tab
This commit is contained in:
Rémi Verschelde 2023-09-02 14:29:00 +02:00
commit 60422759fa
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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;