From: daid Date: Thu, 2 Aug 2012 09:17:25 +0000 (+0200) Subject: Fix the outline when the scale is no 1.0 X-Git-Tag: 13.03~371 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=16589b733d33329c76a943fd263a6bd65e5686c5;p=cura.git Fix the outline when the scale is no 1.0 --- diff --git a/Cura/gui/preview3d.py b/Cura/gui/preview3d.py index 26ebe04a..5ff77233 100644 --- a/Cura/gui/preview3d.py +++ b/Cura/gui/preview3d.py @@ -613,7 +613,11 @@ class PreviewGLCanvas(glcanvas.GLCanvas): glEnable(GL_DEPTH_TEST) glDisable(GL_LIGHTING) glColor3f(1,1,1) + glPushMatrix() + modelScale = profile.getProfileSettingFloat('model_scale') + glScalef(modelScale, modelScale, modelScale) opengl.DrawMeshOutline(obj.mesh) + glPopMatrix() glPopMatrix() if self.viewMode == "Normal" or self.viewMode == "Transparent" or self.viewMode == "X-Ray":