Fixing feature 32 - expressions in scale.

This commit is contained in:
daid 2012-04-18 17:06:32 +02:00
parent 5879a9e71b
commit c49b6c99a9

View file

@ -133,9 +133,7 @@ class previewPanel(wx.Panel):
def OnScale(self, e):
scale = 1.0
if self.scale.GetValue() != '':
scale = float(self.scale.GetValue())
if scale <= 0.0:
scale = 1.0
scale = self.scale.GetValue()
profile.putProfileSetting('model_scale', scale)
self.modelDirty = True
self.glCanvas.Refresh()