Show error lines in transparent and x-ray view
This commit is contained in:
parent
71a9f24c8f
commit
4e5fc14025
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue