Fix scene tab close

This commit is contained in:
Hrvoje Varga 2023-07-27 07:38:40 +02:00
parent 202e4b2c1e
commit 51923fc528

View file

@ -3617,8 +3617,10 @@ void EditorNode::set_current_scene(int p_idx) {
_update_title(); _update_title();
_update_scene_tabs(); _update_scene_tabs();
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. 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) { void EditorNode::setup_color_picker(ColorPicker *p_picker) {
p_picker->set_editor_settings(EditorSettings::get_singleton()); p_picker->set_editor_settings(EditorSettings::get_singleton());