Fix bug where selection outline stayed visible after a component is

deleted
This commit is contained in:
bkuker 2012-12-13 15:53:45 -05:00
parent ee95d6998a
commit aac5fb9451

View File

@ -131,7 +131,8 @@ public class RocketRenderer {
gl.glMaterialfv(GL.GL_FRONT_AND_BACK, GLLightingFunc.GL_SPECULAR, colorBlack, 0);
gl.glLineWidth(5.0f);
for (RocketComponent c : selection) {
for (RocketComponent c : configuration) {
if ( selection.contains(c) ){
//Draw as lines, set Z to nearest
gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL2GL3.GL_LINE);
gl.glDepthRange(0, 0);
@ -146,6 +147,7 @@ public class RocketRenderer {
gl.glDepthFunc(GL.GL_LESS);
gl.glDepthRange(0, 1);
}
}
gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL2GL3.GL_FILL);
gl.glMaterialfv(GL.GL_FRONT_AND_BACK, GLLightingFunc.GL_EMISSION,
colorBlack, 0);