浏览代码

[csharp] Port of commit ccc5b2f: Fixed root bone transform for skeleton scale to use world axes. See #1373.

Harald Csaszar 6 年之前
父节点
当前提交
79fea3722b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spine-csharp/src/Bone.cs

+ 2 - 2
spine-csharp/src/Bone.cs

@@ -149,8 +149,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;