Explorar o código

Keeps the filename when marking scene as unsaved

Haoyu Qiu %!s(int64=5) %!d(string=hai) anos
pai
achega
9ed61a70cc
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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