Преглед на файлове

Merge branch '4.1' into 4.2-beta

Harald Csaszar преди 1 година
родител
ревизия
b9b9a836e0
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  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) {
 			switch (bone.data.transformMode) {
 			case TransformMode.OnlyTranslation:
 			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;
 				break;
 			case TransformMode.NoRotationOrReflection: {
 			case TransformMode.NoRotationOrReflection: {
 				float s = Math.Abs(pa * pd - pb * pc) / Math.Max(0.0001f, pa * pa + pc * pc);
 				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",
 	"name": "com.esotericsoftware.spine.spine-csharp",
 	"displayName": "spine-csharp Runtime",
 	"displayName": "spine-csharp Runtime",
 	"description": "This plugin provides the spine-csharp core runtime.",
 	"description": "This plugin provides the spine-csharp core runtime.",
-	"version": "4.2.3",
+	"version": "4.2.4",
 	"unity": "2018.3",
 	"unity": "2018.3",
 	"author": {
 	"author": {
 		"name": "Esoteric Software",
 		"name": "Esoteric Software",