From 8cfe6be2c0372e48dccaf38fcac7aba8381cb18d Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 13 Jun 2019 15:15:57 +0200 Subject: [PATCH] [csharp] Port of commit ccc5b2f: Fixed root bone transform for skeleton scale to use world axes. See #1373. --- spine-csharp/src/Bone.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-csharp/src/Bone.cs b/spine-csharp/src/Bone.cs index 7bf4335ba..d6d9662cd 100644 --- a/spine-csharp/src/Bone.cs +++ b/spine-csharp/src/Bone.cs @@ -152,8 +152,8 @@ namespace Spine { if (parent == null) { // Root bone. float rotationY = rotation + 90 + shearY, sx = skeleton.scaleX, sy = skeleton.scaleY; a = MathUtils.CosDeg(rotation + shearX) * scaleX * sx; - b = MathUtils.CosDeg(rotationY) * scaleY * sy; - c = MathUtils.SinDeg(rotation + shearX) * scaleX * sx; + b = MathUtils.CosDeg(rotationY) * scaleY * sx; + c = MathUtils.SinDeg(rotation + shearX) * scaleX * sy; d = MathUtils.SinDeg(rotationY) * scaleY * sy; worldX = x * sx + skeleton.x; worldY = y * sy + skeleton.y;