Open d954mas opened 7 months ago
Update repro case. Sprite was fixed.
Now you can see, that sprites is rotated but have correct width and height Gui is rotated but width and height is swapped gui_width_height_not_correct.zip
https://github.com/user-attachments/assets/3fbacfec-8ab6-4ace-88bf-1b20708b2e6f
Maybe correctly way to fix it will be add geometry rotation to get/set atlas resources? For now we can't create rotated image in runtime created atlas
My case for that code. I have 2 atlases. skins_empty.atlas and skins_liveupdate.atlas.
When liveupdate is loaded i am replaced skinks atlas with full version
Describe the bug (REQUIRED) Gui node width and height not correct after resource.set_atlas if image in atlas rotated
Look at second node. Width and height are swapped.
I use 3 atlases.
Also i try reproduce this in gui and in sprites. Sprites not worked when i change atlas https://github.com/defold/defold/issues/8783 So for now sprites use "assets/skins.atlas"
To Reproduce (REQUIRED) See repro case.
Expected behavior (REQUIRED) If i change atlas gui nodes show it correctly.
Defold version (REQUIRED):
Platforms (REQUIRED):
Minimal repro case project (OPTIONAL):
gui_width_height_not_correct.zip
Additional context (OPTIONAL): https://forum.defold.com/t/replace-atlast-with-liveupdate-version/76540/3