summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2020-03-09 10:26:57 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2020-03-09 10:26:57 +0800
commit9ed61a70ccffd704d113779f726a6da6e9d4a547 (patch)
treedd3fe687050115fadde652103ec6b31e2aa629c8
parent7579a792bed9881a6afd73c058dfd57441fb5c7a (diff)
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