Merge pull request #104963 from beicause/display-pctex-format

Display PortableCompressedTexture's format in inspector preview
This commit is contained in:
Thaddeus Crews 2025-04-03 09:27:48 -05:00
commit 577133e6d2
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -124,6 +124,11 @@ static Image::Format get_texture_2d_format(const Ref<Texture2D> &p_texture) {
return compressed_texture->get_format();
}
const Ref<PortableCompressedTexture2D> portable_compressed_texture = p_texture;
if (portable_compressed_texture.is_valid()) {
return portable_compressed_texture->get_format();
}
// AtlasTexture?
// Unknown