Fix an issue when there is no 3D model displayed (lighting was not turned off for the machine draw)
This commit is contained in:
parent
e5555edd06
commit
58f4edbef9
1 changed files with 1 additions and 1 deletions
|
@ -47,6 +47,7 @@ def InitGL(window, view3D, zoom):
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT)
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT)
|
||||||
|
|
||||||
def DrawMachine(machineSize):
|
def DrawMachine(machineSize):
|
||||||
|
glDisable(GL_LIGHTING)
|
||||||
if False:
|
if False:
|
||||||
glColor3f(0.7,0.7,0.7)
|
glColor3f(0.7,0.7,0.7)
|
||||||
glLineWidth(2)
|
glLineWidth(2)
|
||||||
|
@ -102,7 +103,6 @@ def DrawMachine(machineSize):
|
||||||
|
|
||||||
glColor3f(0.0,0.0,0.0)
|
glColor3f(0.0,0.0,0.0)
|
||||||
glLineWidth(4)
|
glLineWidth(4)
|
||||||
glDisable(GL_LIGHTING)
|
|
||||||
glBegin(GL_LINE_LOOP)
|
glBegin(GL_LINE_LOOP)
|
||||||
glVertex3f(0, 0, 0)
|
glVertex3f(0, 0, 0)
|
||||||
glVertex3f(machineSize.x, 0, 0)
|
glVertex3f(machineSize.x, 0, 0)
|
||||||
|
|
Loading…
Reference in a new issue