Merge pull request #31004 from Kanabenki/fix-undo-close-scene

Don't add unsaved scene to previous scenes list when closing a tab
This commit is contained in:
Rémi Verschelde 2019-08-01 08:45:36 +02:00 committed by GitHub
commit b755cf1a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();