mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-16 02:26:53 +02:00
[core] Add validValue
and errorMessage
support for ChoiceParams
ChoiceParams can now also have their `validValue` and `errorMessage` parameters. The `validValueChanged` is also emitted whenever a parameter's value changes. This ensures that the `validValue` parameter is always re- evaluated when the attribute is updated, even if `validValue` itself does not change.
This commit is contained in:
parent
e873dbf280
commit
e6bf7e6e2d
2 changed files with 5 additions and 2 deletions
|
@ -196,6 +196,7 @@ class Attribute(BaseObject):
|
|||
self.requestNodeUpdate()
|
||||
|
||||
self.valueChanged.emit()
|
||||
self.validValueChanged.emit()
|
||||
|
||||
def upgradeValue(self, exportedValue):
|
||||
self._set_value(exportedValue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue