mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Close built-in script from any scene
This commit is contained in:
parent
43c896ac6a
commit
1a60509699
@ -566,6 +566,10 @@ void EditorData::remove_scene(int p_idx) {
|
||||
current_edited_scene--;
|
||||
}
|
||||
|
||||
if (edited_scene[p_idx].path != String()) {
|
||||
ScriptEditor::get_singleton()->close_builtin_scripts_from_scene(edited_scene[p_idx].path);
|
||||
}
|
||||
|
||||
edited_scene.remove(p_idx);
|
||||
}
|
||||
|
||||
|
@ -3263,10 +3263,6 @@ void EditorNode::_remove_edited_scene(bool p_change_tab) {
|
||||
new_index = 1;
|
||||
}
|
||||
|
||||
if (editor_data.get_scene_path(old_index) != String()) {
|
||||
ScriptEditor::get_singleton()->close_builtin_scripts_from_scene(editor_data.get_scene_path(old_index));
|
||||
}
|
||||
|
||||
if (p_change_tab) {
|
||||
_scene_tab_changed(new_index);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user