mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Fix sprite editor conversion tools to handle compressed textures
This commit is contained in:
parent
5525cd85c6
commit
1cd7a16c10
@ -173,6 +173,11 @@ void Sprite2DEditor::_update_mesh_data() {
|
||||
|
||||
Ref<Image> image = texture->get_data();
|
||||
ERR_FAIL_COND(image.is_null());
|
||||
|
||||
if (image->is_compressed()) {
|
||||
image->decompress();
|
||||
}
|
||||
|
||||
Rect2 rect;
|
||||
if (node->is_region()) {
|
||||
rect = node->get_region_rect();
|
||||
|
Loading…
Reference in New Issue
Block a user