Просмотр исходного кода

[csharp] Fixed ShearYTimeline.Apply using bone.shearX instead of shearY.

Harald Csaszar 1 год назад
Родитель
Сommit
ccc2b5e644
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      spine-csharp/src/Animation.cs
  2. 1 1
      spine-csharp/src/package.json

+ 1 - 1
spine-csharp/src/Animation.cs

@@ -976,7 +976,7 @@ namespace Spine {
 		override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList<Event> firedEvents, float alpha, MixBlend blend,
 		override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList<Event> firedEvents, float alpha, MixBlend blend,
 									MixDirection direction) {
 									MixDirection direction) {
 			Bone bone = skeleton.bones.Items[boneIndex];
 			Bone bone = skeleton.bones.Items[boneIndex];
-			if (bone.active) bone.shearY = GetRelativeValue(time, alpha, blend, bone.shearX, bone.data.shearY);
+			if (bone.active) bone.shearY = GetRelativeValue(time, alpha, blend, bone.shearY, bone.data.shearY);
 		}
 		}
 	}
 	}
 
 

+ 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.17",
+	"version": "4.2.18",
 	"unity": "2018.3",
 	"unity": "2018.3",
 	"author": {
 	"author": {
 		"name": "Esoteric Software",
 		"name": "Esoteric Software",