mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[c] Fixed wrong curve index.
This commit is contained in:
parent
11ea258d8e
commit
e40bc3c151
@ -221,11 +221,11 @@ float _spCurveTimeline_getBezierValue(spCurveTimeline* self, float time, int fra
|
||||
}
|
||||
|
||||
void spCurveTimeline_setLinear (spCurveTimeline* self, int frameIndex) {
|
||||
self->curves->items[frameIndex * BEZIER_SIZE] = CURVE_LINEAR;
|
||||
self->curves->items[frameIndex] = CURVE_LINEAR;
|
||||
}
|
||||
|
||||
void spCurveTimeline_setStepped (spCurveTimeline* self, int frameIndex) {
|
||||
self->curves->items[frameIndex * BEZIER_SIZE] = CURVE_STEPPED;
|
||||
self->curves->items[frameIndex] = CURVE_STEPPED;
|
||||
}
|
||||
|
||||
#define CURVE1_ENTRIES 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user