mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Changed logic as suggested
This commit is contained in:
parent
3af2736790
commit
0cc5f3ee37
1 changed files with 2 additions and 4 deletions
|
|
@ -82,8 +82,6 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
|
|||
if instance.data.get("publish")
|
||||
}
|
||||
|
||||
allow_status_change = False
|
||||
|
||||
# Check if any family requirement is met
|
||||
for family_requirement in self.status_change_conditions[
|
||||
"family_requirements"
|
||||
|
|
@ -92,8 +90,8 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
|
|||
|
||||
for family in families:
|
||||
match = family_requirement["family"].lower() == family
|
||||
if match and condition or not condition and not match:
|
||||
allow_status_change = True
|
||||
if match and not condition or condition and not match:
|
||||
allow_status_change = False
|
||||
break
|
||||
|
||||
if allow_status_change:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue