Przeglądaj źródła

[as3] Port of commit ccc5b2f: Fixed root bone transform for skeleton. See #1379.

badlogic 6 lat temu
rodzic
commit
b500055baf

BIN
spine-as3/spine-as3-example/lib/spine-as3.swc


+ 2 - 2
spine-as3/spine-as3/src/spine/Bone.as

@@ -99,8 +99,8 @@ package spine {
 				rotationY = rotation + 90 + shearY;				
 				rotationY = rotation + 90 + shearY;				
 				var skeleton : Skeleton = _skeleton;								
 				var skeleton : Skeleton = _skeleton;								
 				this.a = MathUtils.cosDeg(rotation + shearX) * scaleX * sx;
 				this.a = MathUtils.cosDeg(rotation + shearX) * scaleX * sx;
-				this.b = MathUtils.cosDeg(rotationY) * scaleY * sy;
-				this.c = MathUtils.sinDeg(rotation + shearX) * scaleX * sx;
+				this.b = MathUtils.cosDeg(rotationY) * scaleY * sx;
+				this.c = MathUtils.sinDeg(rotation + shearX) * scaleX * sy;
 				this.d = MathUtils.sinDeg(rotationY) * scaleY * sy;
 				this.d = MathUtils.sinDeg(rotationY) * scaleY * sy;
 				worldX = x * sx + skeleton.x;
 				worldX = x * sx + skeleton.x;
 				worldY = y * sy + skeleton.y;
 				worldY = y * sy + skeleton.y;

BIN
spine-starling/spine-starling-example/lib/spine-as3.swc


BIN
spine-starling/spine-starling/lib/spine-as3.swc