Fix the outline when the scale is no 1.0
This commit is contained in:
parent
db0b12881b
commit
16589b733d
1 changed files with 4 additions and 0 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue