From: daid Date: Tue, 31 Jul 2012 15:29:58 +0000 (+0200) Subject: Fixed project planner. X-Git-Tag: 12.08~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=909f476f5e8eba6d971c30e3caf031397129798c;p=cura.git Fixed project planner. --- diff --git a/Cura/gui/opengl.py b/Cura/gui/opengl.py index bf89bf8a..fd623262 100644 --- a/Cura/gui/opengl.py +++ b/Cura/gui/opengl.py @@ -208,7 +208,7 @@ def DrawMeshOutline(mesh): glEnable(GL_CULL_FACE) glEnableClientState(GL_VERTEX_ARRAY); glVertexPointer(3, GL_FLOAT, 0, mesh.vertexes) - + glCullFace(GL_FRONT) glLineWidth(3) glPolygonMode(GL_BACK, GL_LINE) diff --git a/Cura/gui/projectPlanner.py b/Cura/gui/projectPlanner.py index fa01ff76..954b001e 100644 --- a/Cura/gui/projectPlanner.py +++ b/Cura/gui/projectPlanner.py @@ -808,7 +808,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas): item.modelDirty = False modelSize = item.getMaximum() - item.getMinimum() glNewList(item.modelDisplayList, GL_COMPILE) - opengl.DrawSTL(item) + opengl.DrawMesh(item) glEndList() if item.validPlacement: