Merge pull request #100247 from BlueCube3310/tex-preview-all

Consider all texture types for resource thumbnail generation
This commit is contained in:
Thaddeus Crews 2024-12-10 14:15:44 -06:00
commit 14b2f62d04
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84

View File

@ -77,7 +77,7 @@ void post_process_preview(Ref<Image> p_image) {
}
bool EditorTexturePreviewPlugin::handles(const String &p_type) const {
return ClassDB::is_parent_class(p_type, "Texture2D") || ClassDB::is_parent_class(p_type, "Texture3D") || ClassDB::is_parent_class(p_type, "TextureLayered");
return ClassDB::is_parent_class(p_type, "Texture");
}
bool EditorTexturePreviewPlugin::generate_small_preview_automatically() const {