Fixing feature 32 - expressions in scale.
This commit is contained in:
parent
5879a9e71b
commit
c49b6c99a9
1 changed files with 1 additions and 3 deletions
|
@ -133,9 +133,7 @@ class previewPanel(wx.Panel):
|
||||||
def OnScale(self, e):
|
def OnScale(self, e):
|
||||||
scale = 1.0
|
scale = 1.0
|
||||||
if self.scale.GetValue() != '':
|
if self.scale.GetValue() != '':
|
||||||
scale = float(self.scale.GetValue())
|
scale = self.scale.GetValue()
|
||||||
if scale <= 0.0:
|
|
||||||
scale = 1.0
|
|
||||||
profile.putProfileSetting('model_scale', scale)
|
profile.putProfileSetting('model_scale', scale)
|
||||||
self.modelDirty = True
|
self.modelDirty = True
|
||||||
self.glCanvas.Refresh()
|
self.glCanvas.Refresh()
|
||||||
|
|
Loading…
Reference in a new issue