You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix sprite editor conversion tools to handle compressed textures
(cherry picked from commit 1cd7a16c10)
This commit is contained in:
committed by
Rémi Verschelde
parent
ac9e5d9c60
commit
329dcebc83
@@ -182,6 +182,11 @@ void SpriteEditor::_update_mesh_data() {
|
|||||||
|
|
||||||
Ref<Image> image = texture->get_data();
|
Ref<Image> image = texture->get_data();
|
||||||
ERR_FAIL_COND(image.is_null());
|
ERR_FAIL_COND(image.is_null());
|
||||||
|
|
||||||
|
if (image->is_compressed()) {
|
||||||
|
image->decompress();
|
||||||
|
}
|
||||||
|
|
||||||
Rect2 rect;
|
Rect2 rect;
|
||||||
if (node->is_region())
|
if (node->is_region())
|
||||||
rect = node->get_region_rect();
|
rect = node->get_region_rect();
|
||||||
|
|||||||
Reference in New Issue
Block a user