mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 11:03:13 -05:00
Fix ERROR: FileAccessWindows::_get_modified_time: Method/Function Failed on windows due to accessing modifiled time of internal resource when editor gaining focus
This commit is contained in:
parent
ff5a815523
commit
002db0b125
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue