Explorar o código

Merge branch '4.1' into 4.2-beta

Harald Csaszar hai 1 ano
pai
achega
b9b9a836e0
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 2 2
      spine-csharp/src/IkConstraint.cs
  2. 1 1
      spine-csharp/src/package.json

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

@@ -177,8 +177,8 @@ namespace Spine {
 
 			switch (bone.data.transformMode) {
 			case TransformMode.OnlyTranslation:
-				tx = targetX - bone.worldX;
-				ty = targetY - bone.worldY;
+				tx = (targetX - bone.worldX) * Math.Sign(bone.skeleton.ScaleX);
+				ty = (targetY - bone.worldY) * Math.Sign(bone.skeleton.ScaleY);
 				break;
 			case TransformMode.NoRotationOrReflection: {
 				float s = Math.Abs(pa * pd - pb * pc) / Math.Max(0.0001f, pa * pa + pc * pc);

+ 1 - 1
spine-csharp/src/package.json

@@ -2,7 +2,7 @@
 	"name": "com.esotericsoftware.spine.spine-csharp",
 	"displayName": "spine-csharp Runtime",
 	"description": "This plugin provides the spine-csharp core runtime.",
-	"version": "4.2.3",
+	"version": "4.2.4",
 	"unity": "2018.3",
 	"author": {
 		"name": "Esoteric Software",