Merge pull request #52474 from KoBeWi/script_remover_3000

This commit is contained in:
Rémi Verschelde 2021-09-19 11:30:11 +02:00 committed by GitHub
commit 0e5b0c025c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -3278,10 +3278,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);
}