Merge pull request #26 from fluddokt/omaster

Half fix for some sliders
This commit is contained in:
Jeffrey Han 2015-02-27 22:39:30 -05:00
commit abde932b06

View File

@ -109,8 +109,13 @@ public class LinearBezier extends Curve {
if (iter.hasNext()) {
curBezier = iter.next();
curPoint = 0;
} else
} else {
curPoint = curBezier.points() - 1;
if(lastDistanceAt == distanceAt){
//out of points even though we haven't reached the preferred distance.
break;
}
}
}
}
Vec2f thisCurve = curBezier.getCurve()[curPoint];