Fix the outline when the scale is no 1.0

This commit is contained in:
daid committed 2012-08-02 11:17:25 +02:00
1 parent db0b12881b
commit 16589b733d
1 file changed
+4
+4
View File
@@ -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":