mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
usee comparisons on override states
This commit is contained in:
parent
551ba68a1e
commit
b923084a43
1 changed files with 6 additions and 5 deletions
|
|
@ -136,7 +136,7 @@ class BaseEntity:
|
|||
|
||||
@property
|
||||
def has_project_override(self):
|
||||
if self.override_state is OverrideState.PROJECT:
|
||||
if self.override_state >= OverrideState.PROJECT:
|
||||
return self._has_project_override
|
||||
return False
|
||||
|
||||
|
|
@ -551,14 +551,15 @@ class RootEntity(BaseEntity):
|
|||
|
||||
@property
|
||||
def child_has_studio_override(self):
|
||||
for child_obj in self.non_gui_children.values():
|
||||
if child_obj.child_has_studio_override:
|
||||
return True
|
||||
if self.override_state >= OverrideState.STUDIO:
|
||||
for child_obj in self.non_gui_children.values():
|
||||
if child_obj.child_has_studio_override:
|
||||
return True
|
||||
return False
|
||||
|
||||
@property
|
||||
def child_has_project_override(self):
|
||||
if self.override_state is OverrideState.PROJECT:
|
||||
if self.override_state >= OverrideState.PROJECT:
|
||||
for child_obj in self.non_gui_children.values():
|
||||
if child_obj.child_has_project_override:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue