Merge pull request #36929 from timothyqiu/keep-filename

Keeps the filename when marking scene as unsaved
This commit is contained in:
Rémi Verschelde 2020-03-09 11:43:11 +01:00 committed by GitHub
commit a4318281d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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