Merge pull request #86008 from Delsin-Yu/4.2

Correctly free relevant scripts when closing scene tabs
This commit is contained in:
Yuri Sizov 2023-12-18 18:18:05 +01:00
commit c3ee2b9c52

View File

@ -3692,7 +3692,7 @@ void EditorNode::_set_current_scene_nocheck(int p_idx) {
_edit_current(true);
_update_title();
scene_tabs->update_scene_tabs();
callable_mp(scene_tabs, &EditorSceneTabs::update_scene_tabs).call_deferred();
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.