Keeps the filename when marking scene as unsaved

(cherry picked from commit 9ed61a70cc)
This commit is contained in:
Haoyu Qiu 2020-03-09 10:26:57 +08:00 committed by Rémi Verschelde
parent 644d49b156
commit d25949dd49
1 changed files with 0 additions and 1 deletions

View File

@ -1400,7 +1400,6 @@ void EditorNode::_mark_unsaved_scenes() {
String path = node->get_filename(); String path = node->get_filename();
if (!(path == String() || FileAccess::exists(path))) { if (!(path == String() || FileAccess::exists(path))) {
node->set_filename("");
if (i == editor_data.get_edited_scene()) if (i == editor_data.get_edited_scene())
set_current_version(-1); set_current_version(-1);
else else