Skip to content

Commit 33a199d

Browse files
committed
Calculate md5 of import files when cache is missing. Prevents "forced" reimport
1 parent f92f1ce commit 33a199d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/file_system/editor_file_system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ void EditorFileSystem::_process_file_system(const ScannedDirectory *p_scan_dir,
12841284
fi->class_info = _get_global_script_class(fi->type, path);
12851285
fi->modified_time = 0;
12861286
fi->import_modified_time = 0;
1287-
fi->import_md5 = "";
1287+
fi->import_md5 = FileAccess::get_md5(path + ".import");
12881288
fi->import_dest_paths = Vector<String>();
12891289
fi->import_valid = (fi->type == "TextFile" || fi->type == "OtherFile") ? true : ResourceLoader::is_import_valid(path);
12901290

0 commit comments

Comments
 (0)