mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Display PortableCompressedTexture's format in inspector preview
This commit is contained in:
parent
c7ea8614d7
commit
00f2e5be3a
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue