|
@@ -269,7 +269,7 @@ void EditorResourcePreview::_iterate() {
|
|
|
if (item.resource.is_valid()) {
|
|
|
Dictionary preview_metadata;
|
|
|
_generate_preview(texture, small_texture, item, String(), preview_metadata);
|
|
|
- _preview_ready(item.path, item.resource->hash_edited_version(), texture, small_texture, item.id, item.function, item.userdata, preview_metadata);
|
|
|
+ _preview_ready(item.path, item.resource->hash_edited_version_for_preview(), texture, small_texture, item.id, item.function, item.userdata, preview_metadata);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -407,7 +407,7 @@ void EditorResourcePreview::queue_edited_resource_preview(const Ref<Resource> &p
|
|
|
|
|
|
String path_id = "ID:" + itos(p_res->get_instance_id());
|
|
|
|
|
|
- if (cache.has(path_id) && cache[path_id].last_hash == p_res->hash_edited_version()) {
|
|
|
+ if (cache.has(path_id) && cache[path_id].last_hash == p_res->hash_edited_version_for_preview()) {
|
|
|
cache[path_id].order = order++;
|
|
|
p_receiver->call(p_receiver_func, path_id, cache[path_id].preview, cache[path_id].small_preview, p_userdata);
|
|
|
return;
|