[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:
Harald Csaszar 2024-02-07 20:59:11 +01:00
parent 42635d2a8f
commit a8f400b9bf
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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",