SimpleParameter.setValue: coerce value for int parameters
This commit is contained in:
parent
f9327ea910
commit
eb4dd5626f
@ -317,6 +317,11 @@ class SimpleParameter(Parameter):
|
|||||||
self.value = self.colorValue
|
self.value = self.colorValue
|
||||||
self.saveState = self.saveColorState
|
self.saveState = self.saveColorState
|
||||||
|
|
||||||
|
def setValue(self, value, blockSignal=None):
|
||||||
|
if self.opts['type'] == 'int':
|
||||||
|
value = int(value)
|
||||||
|
Parameter.setValue(self, value, blockSignal)
|
||||||
|
|
||||||
def colorValue(self):
|
def colorValue(self):
|
||||||
return fn.mkColor(Parameter.value(self))
|
return fn.mkColor(Parameter.value(self))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user