diff --git a/meshroom/core/desc.py b/meshroom/core/desc.py index 47c28acb..744d40d0 100755 --- a/meshroom/core/desc.py +++ b/meshroom/core/desc.py @@ -154,6 +154,8 @@ class ChoiceParam(Param): raise ValueError('Non exclusive ChoiceParam value "{}" should be iterable.'.format(value)) newValues = value for newValue in newValues: + t = type(self._values[0]) # cast to value type + newValue = t(newValue) if newValue not in self.values: raise ValueError('ChoiceParam value "{}" is not in "{}".'.format(newValue, str(self.values))) return value