Fix scene tab close

(cherry picked from commit 51923fc528)
This commit is contained in:
Hrvoje Varga 2023-07-27 07:38:40 +02:00 committed by Yuri Sizov
parent 5f46bca824
commit 8f32e968b8
1 changed files with 3 additions and 1 deletions

View File

@ -3577,7 +3577,9 @@ void EditorNode::set_current_scene(int p_idx) {
_update_title();
_update_scene_tabs();
call_deferred(SNAME("_set_main_scene_state"), state, get_edited_scene()); // Do after everything else is done setting up.
if (tabs_to_close.is_empty()) {
call_deferred(SNAME("_set_main_scene_state"), state, get_edited_scene()); // Do after everything else is done setting up.
}
}
void EditorNode::setup_color_picker(ColorPicker *p_picker) {