You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Calculate md5 of import files when cache is missing. Prevents "forced" reimport
This commit is contained in:
@@ -1284,7 +1284,7 @@ void EditorFileSystem::_process_file_system(const ScannedDirectory *p_scan_dir,
|
|||||||
fi->class_info = _get_global_script_class(fi->type, path);
|
fi->class_info = _get_global_script_class(fi->type, path);
|
||||||
fi->modified_time = 0;
|
fi->modified_time = 0;
|
||||||
fi->import_modified_time = 0;
|
fi->import_modified_time = 0;
|
||||||
fi->import_md5 = "";
|
fi->import_md5 = FileAccess::get_md5(path + ".import");
|
||||||
fi->import_dest_paths = Vector<String>();
|
fi->import_dest_paths = Vector<String>();
|
||||||
fi->import_valid = (fi->type == "TextFile" || fi->type == "OtherFile") ? true : ResourceLoader::is_import_valid(path);
|
fi->import_valid = (fi->type == "TextFile" || fi->type == "OtherFile") ? true : ResourceLoader::is_import_valid(path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user