Browse Source

Consider all texture types for resource thumbnail generation

BlueCube3310 10 months ago
parent
commit
ab0a2517b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/editor_preview_plugins.cpp

+ 1 - 1
editor/plugins/editor_preview_plugins.cpp

@@ -77,7 +77,7 @@ void post_process_preview(Ref<Image> p_image) {
 }
 }
 
 
 bool EditorTexturePreviewPlugin::handles(const String &p_type) const {
 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 {
 bool EditorTexturePreviewPlugin::generate_small_preview_automatically() const {