Skip to content

Commit d32233d

Browse files
rynkowsgminggo
authored andcommitted
Fix "Possible misuse of comma operator here" (cocos2d#18350)
1 parent 10acb5a commit d32233d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cocos/3d/CCAnimationCurve.inl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ void AnimationCurve<componentSize>::evaluate(float time, float* dst, EvaluateTyp
4646
else
4747
Quaternion::slerp(Quaternion(toValue), Quaternion(fromValue), t, &quat);
4848

49-
dst[0] = quat.x, dst[1] = quat.y, dst[2] = quat.z, dst[3] = quat.w;
49+
dst[0] = quat.x;
50+
dst[1] = quat.y;
51+
dst[2] = quat.z;
52+
dst[3] = quat.w;
5053
}
5154
break;
5255
case EvaluateType::INT_USER_FUNCTION:

0 commit comments

Comments
 (0)