[libgdx] Fixed an infinite loop with path constraint.

This commit is contained in:
Nathan Sweet 2020-11-23 17:37:48 -08:00
parent 1b4973628c
commit df489b1f4a

View File

@ -109,7 +109,7 @@ public class PathConstraint implements Updatable {
switch (data.spacingMode) {
case percent:
if (scale) {
for (int i = 0, n = spacesCount - 1; i < n;) {
for (int i = 0, n = spacesCount - 1; i < n; i++) {
Bone bone = (Bone)bones[i];
float setupLength = bone.data.length;
if (setupLength < epsilon)