From: Daid Date: Sat, 1 Sep 2012 12:55:48 +0000 (+0200) Subject: Fix an issue when there is no 3D model displayed (lighting was not turned off for... X-Git-Tag: 13.03~354 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=58f4edbef9bba447912210d7f66ed3cee47b1c6c;p=cura.git Fix an issue when there is no 3D model displayed (lighting was not turned off for the machine draw) --- diff --git a/Cura/gui/opengl.py b/Cura/gui/opengl.py index b6802975..5ed7f4c9 100644 --- a/Cura/gui/opengl.py +++ b/Cura/gui/opengl.py @@ -47,6 +47,7 @@ def InitGL(window, view3D, zoom): glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT) def DrawMachine(machineSize): + glDisable(GL_LIGHTING) if False: glColor3f(0.7,0.7,0.7) glLineWidth(2) @@ -102,7 +103,6 @@ def DrawMachine(machineSize): glColor3f(0.0,0.0,0.0) glLineWidth(4) - glDisable(GL_LIGHTING) glBegin(GL_LINE_LOOP) glVertex3f(0, 0, 0) glVertex3f(machineSize.x, 0, 0)