Formatting.

This commit is contained in:
Mario Zechner 2022-09-13 10:00:54 +02:00
parent e01ba364df
commit 316c114855

View File

@ -595,10 +595,10 @@ _spAnimationState_setAttachment(spAnimationState *self, spSkeleton *skeleton, sp
/* @param target After the first and before the last entry. */
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,