Merge pull request #477 from teyrana/fix_468_render_glitch
Fixes #468: Freeform fins display correctly again.
This commit is contained in:
commit
d6870e77e4
@ -1095,6 +1095,13 @@ public abstract class FinSet extends ExternalComponent implements RingInstanceab
|
|||||||
|
|
||||||
xCur += increment;
|
xCur += increment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// correct last point, if beyond a rounding error from body's end.
|
||||||
|
final int lastIndex = points.length - 1;
|
||||||
|
if( body.getLength()-0.000001 < points[lastIndex].x) {
|
||||||
|
points[lastIndex] = points[lastIndex].setX(body.getLength()).setY(body.getAftRadius());
|
||||||
|
}
|
||||||
|
|
||||||
return points;
|
return points;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user