mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
endpoint entities can trigger changes on root item
This commit is contained in:
parent
18b10d813a
commit
e2ae219495
1 changed files with 6 additions and 0 deletions
|
|
@ -68,6 +68,12 @@ class EndpointEntity(ItemEntity):
|
|||
def on_change(self):
|
||||
for callback in self.on_change_callbacks:
|
||||
callback()
|
||||
|
||||
if self.require_restart:
|
||||
if self.has_unsaved_changes:
|
||||
self.root_item.add_item_require_restart(self)
|
||||
else:
|
||||
self.root_item.remove_item_require_restart(self)
|
||||
self.parent.on_child_change(self)
|
||||
|
||||
def update_default_value(self, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue