From 002db0b1252b56c9ff8ec5da466e0bf21ec81c7d Mon Sep 17 00:00:00 2001 From: marynate Date: Mon, 30 Jun 2014 13:23:17 +0800 Subject: [PATCH] Fix ERROR: FileAccessWindows::_get_modified_time: Method/Function Failed on windows due to accessing modifiled time of internal resource when editor gaining focus --- tools/editor/editor_node.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 9132abcb6e1..9c116448de7 100644 --- a/tools/editor/editor_node.cpp +++ b/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()) continue; + if (!FileAccess::exists(E->get()->get_path())) + continue; uint64_t mt = FileAccess::get_modified_time(E->get()->get_path()); if (mt!=E->get()->get_last_modified_time()) { E->get()->reload_from_file();