diff options
author | Kanabenki <lucien.menassol@gmail.com> | 2019-07-31 23:49:16 +0200 |
---|---|---|
committer | Kanabenki <lucien.menassol@gmail.com> | 2019-07-31 23:49:16 +0200 |
commit | 648313ab8a7364ce9429108b22d31cd22e555bc3 (patch) | |
tree | 9bf66abe76db2c2e1e79c81df02a1a9bfc4ec9e0 | |
parent | 507e41e6986b75a81d66ff82dc5754a6909818e3 (diff) |
Don't add unsaved scene to previous scenes list
-rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 2cbe408828..faa936bd64 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2640,7 +2640,9 @@ 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(); - previous_scenes.push_back(scene_filename); + if (scene_filename != "") { + previous_scenes.push_back(scene_filename); + } } _remove_scene(tab_closing); |