1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Don't add unsaved scene to previous scenes list

This commit is contained in:
Kanabenki
2019-07-31 23:49:16 +02:00
parent 507e41e698
commit 648313ab8a

View File

@@ -2640,8 +2640,10 @@ void EditorNode::_discard_changes(const String &p_str) {
Node *scene = editor_data.get_edited_scene_root(tab_closing);
if (scene != NULL) {
String scene_filename = scene->get_filename();
if (scene_filename != "") {
previous_scenes.push_back(scene_filename);
}
}
_remove_scene(tab_closing);
_update_scene_tabs();