summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-03-09 11:43:11 +0100
committerGitHub <noreply@github.com>2020-03-09 11:43:11 +0100
commita4318281d32e37160852255d9b8500ba3fb948b9 (patch)
treec415260c32e3d7f367f91c2088548c8343520f0b
parent159ed359f0ccb78b2732343a3afe25ae9da6437e (diff)
parent9ed61a70ccffd704d113779f726a6da6e9d4a547 (diff)
Merge pull request #36929 from timothyqiu/keep-filename
Keeps the filename when marking scene as unsaved
-rw-r--r--editor/editor_node.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 43e640b40e..7c420b9741 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -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