Fix 3D rendering of TubeFinSet.

Changes to the TubeFinSet instanceable caused extra rotations of the
TubeFinSet around body tubes and podsets. Remove the extra rotation from
the 3D renderer.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
This commit is contained in:
Billy Olsen 2020-07-25 18:17:31 -07:00
parent ac7d606423
commit ec40b20ae0

View File

@ -317,7 +317,6 @@ public class ComponentRenderer {
private void renderTubeFins(GL2 gl, TubeFinSet fs, Surface which) { private void renderTubeFins(GL2 gl, TubeFinSet fs, Surface which) {
gl.glPushMatrix(); gl.glPushMatrix();
gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW); gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);
gl.glRotated(fs.getBaseRotation() * (180.0 / Math.PI), 1, 0, 0);
gl.glTranslated(0, fs.getOuterRadius(), 0); gl.glTranslated(0, fs.getOuterRadius(), 0);
renderTube(gl, which, fs.getOuterRadius(), fs.getInnerRadius(), fs.getLength()); renderTube(gl, which, fs.getOuterRadius(), fs.getInnerRadius(), fs.getLength());
gl.glPopMatrix(); gl.glPopMatrix();