Преглед на файлове

Keeps the filename when marking scene as unsaved

(cherry picked from commit 9ed61a70ccffd704d113779f726a6da6e9d4a547)
Haoyu Qiu преди 5 години
родител
ревизия
d25949dd49
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      editor/editor_node.cpp

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