mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[unity] Fixed incomplete bugfix commit b3aa3e0 regarding GetRepackedSkin issue with 270 degree rotation polygon packing and non-square atlas. See #2445.
This commit is contained in:
parent
42635d2a8f
commit
a8f400b9bf
@ -743,7 +743,7 @@ namespace Spine.Unity.AttachmentTools {
|
||||
// at a 270 degree region, u2/v2 deltas and atlas width/height are swapped, and delta-v is negative.
|
||||
float du = uvRect.width; // u2 - u;
|
||||
float dv = uvRect.height; // v - v2;
|
||||
float atlasAspectRatio = page.width / page.height;
|
||||
float atlasAspectRatio = (float)page.width / (float)page.height;
|
||||
u2 = u + (dv / atlasAspectRatio);
|
||||
v2 = v - (du * atlasAspectRatio);
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "com.esotericsoftware.spine.spine-unity",
|
||||
"displayName": "spine-unity Runtime",
|
||||
"description": "This plugin provides the spine-unity runtime core.",
|
||||
"version": "4.1.35",
|
||||
"version": "4.1.36",
|
||||
"unity": "2018.3",
|
||||
"author": {
|
||||
"name": "Esoteric Software",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user