Răsfoiți Sursa

Keeps the filename when marking scene as unsaved

Haoyu Qiu 5 ani în urmă
părinte
comite
9ed61a70cc
1 a modificat fișierele cu 0 adăugiri și 1 ștergeri
  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