diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-09 11:43:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 11:43:11 +0100 |
commit | a4318281d32e37160852255d9b8500ba3fb948b9 (patch) | |
tree | c415260c32e3d7f367f91c2088548c8343520f0b | |
parent | 159ed359f0ccb78b2732343a3afe25ae9da6437e (diff) | |
parent | 9ed61a70ccffd704d113779f726a6da6e9d4a547 (diff) |
Merge pull request #36929 from timothyqiu/keep-filename
Keeps the filename when marking scene as unsaved
-rw-r--r-- | editor/editor_node.cpp | 1 |
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 |