mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 17:04:54 +01:00
strict list has set override state base
This commit is contained in:
parent
2de9d7a058
commit
2c56fb669e
1 changed files with 6 additions and 1 deletions
|
|
@ -1025,7 +1025,6 @@ class ListStrictEntity(ItemEntity):
|
|||
|
||||
# Abstract methods
|
||||
set_value = None
|
||||
set_override_state = None
|
||||
on_change = None
|
||||
on_child_change = None
|
||||
on_value_change = None
|
||||
|
|
@ -1051,6 +1050,12 @@ class ListStrictEntity(ItemEntity):
|
|||
def current_value(self):
|
||||
return self._current_value
|
||||
|
||||
def set_override_state(self, state):
|
||||
# TODO use right value as current_value is held here
|
||||
self.override_state = state
|
||||
for child_obj in self.children:
|
||||
child_obj.set_override_state(state)
|
||||
|
||||
def update_default_value(self, value):
|
||||
# TODO add value validation (length)
|
||||
# TODO current_value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue