From b37b40ff76b268d125e4b7d3f43e9c650d9e3083 Mon Sep 17 00:00:00 2001 From: DE-YU Date: Mon, 18 Dec 2023 21:41:07 +0800 Subject: [PATCH] Correctly free relevant scripts when closing scene tabs --- editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 52f432135ec..ce7e71cb92c 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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.