From d25949dd4950f2be35fb64dadaa78f174a601c51 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 9 Mar 2020 10:26:57 +0800 Subject: [PATCH] Keeps the filename when marking scene as unsaved (cherry picked from commit 9ed61a70ccffd704d113779f726a6da6e9d4a547) --- editor/editor_node.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 6043611f5b6..0f7a3f6f402 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1400,7 +1400,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