1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Unedit nodes early when closing scene tab

This commit is contained in:
kobewi
2023-08-21 14:12:26 +02:00
parent 970be7afdc
commit dd7152a311

View File

@@ -3435,6 +3435,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;