Skip to content

Commit

Permalink
Merge pull request #86008 from Delsin-Yu/4.2
Browse files Browse the repository at this point in the history
Correctly free relevant scripts when closing scene tabs
  • Loading branch information
YuriSizov committed Dec 18, 2023
2 parents a9a5093 + b37b40f commit c3ee2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c3ee2b9

Please sign in to comment.