From 909f476f5e8eba6d971c30e3caf031397129798c Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 31 Jul 2012 17:29:58 +0200 Subject: [PATCH] Fixed project planner. --- Cura/gui/opengl.py | 2 +- Cura/gui/projectPlanner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cura/gui/opengl.py b/Cura/gui/opengl.py index bf89bf8..fd62326 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 fa01ff7..954b001 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: