Show error lines in transparent and x-ray view

This commit is contained in:
daid 2012-03-21 12:18:57 +01:00
parent 71a9f24c8f
commit 4e5fc14025

View file

@ -499,9 +499,11 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
elif self.viewMode == "Model - Normal":
glEnable(GL_LIGHTING)
glCallList(self.modelDisplayList)
if self.viewMode == "Model - Normal" or self.viewMode == "Model - Transparent" or self.viewMode == "Model - X-Ray":
glDisable(GL_LIGHTING)
glDisable(GL_DEPTH_TEST)
glDisable(GL_BLEND)
glColor3f(1,0,0)
glTranslate(self.parent.machineCenter.x, self.parent.machineCenter.y, 0)
glBegin(GL_LINES)