Browse Source

[unity] Fixed wond IKConstraint timeline bend-direction with skeleton binary. Closes #2448.

Harald Csaszar 1 year ago
parent
commit
cb33b34a4a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      spine-csharp/src/SkeletonBinary.cs
  2. 1 1
      spine-csharp/src/package.json

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

@@ -872,7 +872,7 @@ namespace Spine {
 				float time = input.ReadFloat(), mix = input.ReadFloat(), softness = input.ReadFloat() * scale;
 				for (int frame = 0, bezier = 0; ; frame++) {
 					int flags = input.Read();
-					timeline.SetFrame(frame, time, mix, softness, input.ReadByte(), (flags & 1) != 0, (flags & 2) != 0);
+					timeline.SetFrame(frame, time, mix, softness, input.ReadSByte(), (flags & 1) != 0, (flags & 2) != 0);
 					if (frame == frameLast) break;
 					float time2 = input.ReadFloat(), mix2 = input.ReadFloat(), softness2 = input.ReadFloat() * scale;
 					switch (input.ReadByte()) {

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