Browse Source

[c] fix wrong TwoColorAnimation parsing in Json (#2797)

Byeong Gwan 5 months ago
parent
commit
f93466522b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-c/spine-c/src/spine/SkeletonJson.c

+ 1 - 1
spine-c/spine-c/src/spine/SkeletonJson.c

@@ -391,7 +391,7 @@ static spAnimation *_spSkeletonJson_readAnimation(spSkeletonJson *self, Json *ro
 
 				for (frame = 0, bezier = 0;; ++frame) {
 					float time2;
-					spRGBA2Timeline_setFrame(timeline, frame, time, color.r, color.g, color.b, color.a, color2.g,
+					spRGBA2Timeline_setFrame(timeline, frame, time, color.r, color.g, color.b, color.a, color2.r,
 											 color2.g, color2.b);
 					nextMap = keyMap->next;
 					if (!nextMap) {