Merge branch '4.1' into 4.2-beta

This commit is contained in:
Mario Zechner 2023-02-20 12:57:34 +01:00
commit a5fc30cbf2

View File

@ -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);