mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
[c] Closes #2253, incorrect parsing of stepped curves in SkeletonJson.
This commit is contained in:
parent
fbb0d0d41f
commit
de808262bb
@ -120,7 +120,7 @@ static int readCurve(Json *curve, spCurveTimeline *timeline, int bezier, int fra
|
||||
float value1, float value2, float scale) {
|
||||
float cx1, cy1, cx2, cy2;
|
||||
if (curve->type == Json_String && strcmp(curve->valueString, "stepped") == 0) {
|
||||
if (value != 0) spCurveTimeline_setStepped(timeline, frame);
|
||||
spCurveTimeline_setStepped(timeline, frame);
|
||||
return bezier;
|
||||
}
|
||||
curve = Json_getItemAtIndex(curve, value << 2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user