diff options
author | kobewi <kobewi4e@gmail.com> | 2021-02-26 23:18:50 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-02-26 23:18:50 +0100 |
commit | af069109bec8c6c60ae3c9e2d49084eeb3fdbbd3 (patch) | |
tree | 3084711b25a1d01fb49a3b747b7715d29728a22c | |
parent | 7b685a1558aaa7e014d358c2db8be83aef5d8b8f (diff) |
Don't check modified time if file doesn't exist
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4cf85a8caf..f0e53e7ef5 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -902,7 +902,8 @@ void EditorNode::_scan_external_changes() { // Check if any edited scene has changed. for (int i = 0; i < editor_data.get_edited_scene_count(); i++) { - if (editor_data.get_scene_path(i) == "") { + DirAccessRef da = DirAccess::create(DirAccess::ACCESS_RESOURCES); + if (editor_data.get_scene_path(i) == "" || !da->file_exists(editor_data.get_scene_path(i))) { continue; } |