Keep looking when a preview plugin returns an empty image.
EditorResourcePreviewGenerator::_generate says that "Returning an empty texture is an OK way to fail and let another generator take care." This patch enables that behavior.
This commit is contained in:
parent
ce8a837aab
commit
28e7069ee0
2 changed files with 5 additions and 3 deletions
|
|
@ -221,7 +221,9 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref<
|
|||
r_small_texture->set_image(small_image);
|
||||
}
|
||||
|
||||
break;
|
||||
if (generated.is_valid()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!p_item.resource.is_valid()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue