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

Merge pull request #562 from marynate/PR-fix-internal-res-mod-time

Fix ERROR: FileAccessWindows::_get_modified_time:  Method/Function Failed on windows
reduz преди 11 години
родител
ревизия
77a15e2a3e
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      tools/editor/editor_node.cpp

+ 2 - 0
tools/editor/editor_node.cpp

@@ -2263,6 +2263,8 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) {
 
 
 				if (!E->get()->can_reload_from_file())
 				if (!E->get()->can_reload_from_file())
 					continue;
 					continue;
+				if (!FileAccess::exists(E->get()->get_path()))
+					continue;
 				uint64_t mt = FileAccess::get_modified_time(E->get()->get_path());
 				uint64_t mt = FileAccess::get_modified_time(E->get()->get_path());
 				if (mt!=E->get()->get_last_modified_time()) {
 				if (mt!=E->get()->get_last_modified_time()) {
 					E->get()->reload_from_file();
 					E->get()->reload_from_file();