Half fix for some sliders
which doesn't have enough distance in the curve to reach the end.
This commit is contained in:
parent
ad5277882e
commit
9c2c5e309a
|
@ -109,8 +109,13 @@ public class LinearBezier extends Curve {
|
||||||
if (iter.hasNext()) {
|
if (iter.hasNext()) {
|
||||||
curBezier = iter.next();
|
curBezier = iter.next();
|
||||||
curPoint = 0;
|
curPoint = 0;
|
||||||
} else
|
} else {
|
||||||
curPoint = curBezier.points() - 1;
|
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];
|
Vec2f thisCurve = curBezier.getCurve()[curPoint];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user