You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Don't add unsaved scene to previous scenes list
This commit is contained in:
@@ -2640,7 +2640,9 @@ void EditorNode::_discard_changes(const String &p_str) {
|
|||||||
Node *scene = editor_data.get_edited_scene_root(tab_closing);
|
Node *scene = editor_data.get_edited_scene_root(tab_closing);
|
||||||
if (scene != NULL) {
|
if (scene != NULL) {
|
||||||
String scene_filename = scene->get_filename();
|
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);
|
_remove_scene(tab_closing);
|
||||||
|
|||||||
Reference in New Issue
Block a user