mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #86008 from Delsin-Yu/4.2
Correctly free relevant scripts when closing scene tabs
This commit is contained in:
commit
c3ee2b9c52
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user