Don't check modified time if file doesn't exist
(cherry picked from commit af069109be
)
This commit is contained in:
parent
b2d723b039
commit
56c0b39521
1 changed files with 2 additions and 1 deletions
|
@ -818,7 +818,8 @@ void EditorNode::_scan_external_changes() {
|
||||||
// Check if any edited scene has changed.
|
// Check if any edited scene has changed.
|
||||||
|
|
||||||
for (int i = 0; i < editor_data.get_edited_scene_count(); i++) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue