|
@@ -595,10 +595,10 @@ _spAnimationState_setAttachment(spAnimationState *self, spSkeleton *skeleton, sp
|
|
|
|
|
|
/* @param target After the first and before the last entry. */
|
|
/* @param target After the first and before the last entry. */
|
|
static int binarySearch1(float *values, int valuesLength, float target) {
|
|
static int binarySearch1(float *values, int valuesLength, float target) {
|
|
- for (int i = 1; i < valuesLength; i++) {
|
|
|
|
- if (values[i] > target) return (int) (i - 1);
|
|
|
|
- }
|
|
|
|
- return (int) valuesLength - 1;
|
|
|
|
|
|
+ for (int i = 1; i < valuesLength; i++) {
|
|
|
|
+ if (values[i] > target) return (int) (i - 1);
|
|
|
|
+ }
|
|
|
|
+ return (int) valuesLength - 1;
|
|
}
|
|
}
|
|
|
|
|
|
void _spAnimationState_applyAttachmentTimeline(spAnimationState *self, spTimeline *timeline, spSkeleton *skeleton,
|
|
void _spAnimationState_applyAttachmentTimeline(spAnimationState *self, spTimeline *timeline, spSkeleton *skeleton,
|