Skip to content

Commit

Permalink
Merge pull request #79917 from hvarga/fix-scene-tab-close
Browse files Browse the repository at this point in the history
Fix crash when using "Close All Tabs"
  • Loading branch information
YuriSizov committed Jul 31, 2023
2 parents 3de7dd9 + 51923fc commit f158981
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3620,7 +3620,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) {
Expand Down

0 comments on commit f158981

Please sign in to comment.