From 58f4edbef9bba447912210d7f66ed3cee47b1c6c Mon Sep 17 00:00:00 2001 From: Daid Date: Sat, 1 Sep 2012 14:55:48 +0200 Subject: [PATCH] Fix an issue when there is no 3D model displayed (lighting was not turned off for the machine draw) --- Cura/gui/opengl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cura/gui/opengl.py b/Cura/gui/opengl.py index b680297..5ed7f4c 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)