浏览代码

Keeps the filename when marking scene as unsaved

Haoyu Qiu 5 年之前
父节点
当前提交
9ed61a70cc
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      editor/editor_node.cpp

+ 0 - 1
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