Fix the outline when the scale is no 1.0
This commit is contained in:
1 parent
db0b12881b
commit
16589b733d
1 file changed
+4
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user