mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 16:10:37 +08:00
Fixing feature 32 - expressions in scale.
This commit is contained in:
parent
5879a9e71b
commit
c49b6c99a9
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user