chiark / gitweb /
Fix the outline when the scale is no 1.0
authordaid <daid303@gmail.com>
Thu, 2 Aug 2012 09:17:25 +0000 (11:17 +0200)
committerdaid <daid303@gmail.com>
Thu, 2 Aug 2012 09:17:25 +0000 (11:17 +0200)
Cura/gui/preview3d.py

index 26ebe04a886162be581bb39af78949e5b636310d..5ff77233cd9ec7628c334a91c112a3b1f23d97d8 100644 (file)
@@ -613,7 +613,11 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
                                glEnable(GL_DEPTH_TEST)\r
                                glDisable(GL_LIGHTING)\r
                                glColor3f(1,1,1)\r
+                               glPushMatrix()\r
+                               modelScale = profile.getProfileSettingFloat('model_scale')\r
+                               glScalef(modelScale, modelScale, modelScale)\r
                                opengl.DrawMeshOutline(obj.mesh)\r
+                               glPopMatrix()\r
                \r
                glPopMatrix()   \r
                if self.viewMode == "Normal" or self.viewMode == "Transparent" or self.viewMode == "X-Ray":\r