mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
change override state on calling pop
This commit is contained in:
parent
e0c48ec5c7
commit
8f622281cf
1 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,12 @@ class DictMutableKeysEntity(EndpointEntity):
|
|||
def pop(self, key, *args, **kwargs):
|
||||
if key in self.required_keys:
|
||||
raise RequiredKeyModified(self.path, key)
|
||||
|
||||
if self._override_state is OverrideState.STUDIO:
|
||||
self._has_studio_override = True
|
||||
elif self._override_state is OverrideState.PROJECT:
|
||||
self._has_project_override = True
|
||||
|
||||
result = self.children_by_key.pop(key, *args, **kwargs)
|
||||
self.on_change()
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue