mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Remove redundant hierarchy argument for methods
This commit is contained in:
parent
c143f164d0
commit
9a702cbd25
1 changed files with 4 additions and 6 deletions
|
|
@ -58,10 +58,8 @@ class ValidateRigContents(pyblish.api.InstancePlugin):
|
||||||
invalid_hierarchy.append(node)
|
invalid_hierarchy.append(node)
|
||||||
|
|
||||||
# Additional validations
|
# Additional validations
|
||||||
invalid_geometry = self.validate_geometry(output_content,
|
invalid_geometry = self.validate_geometry(output_content)
|
||||||
hierarchy)
|
invalid_controls = self.validate_controls(controls_content)
|
||||||
invalid_controls = self.validate_controls(controls_content,
|
|
||||||
hierarchy)
|
|
||||||
|
|
||||||
error = False
|
error = False
|
||||||
if invalid_hierarchy:
|
if invalid_hierarchy:
|
||||||
|
|
@ -83,7 +81,7 @@ class ValidateRigContents(pyblish.api.InstancePlugin):
|
||||||
if error:
|
if error:
|
||||||
raise RuntimeError("Invalid rig content. See log for details.")
|
raise RuntimeError("Invalid rig content. See log for details.")
|
||||||
|
|
||||||
def validate_geometry(self, set_members, hierarchy):
|
def validate_geometry(self, set_members):
|
||||||
"""Check if the out set passes the validations
|
"""Check if the out set passes the validations
|
||||||
|
|
||||||
Checks if all its set members are within the hierarchy of the root
|
Checks if all its set members are within the hierarchy of the root
|
||||||
|
|
@ -110,7 +108,7 @@ class ValidateRigContents(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
return invalid
|
return invalid
|
||||||
|
|
||||||
def validate_controls(self, set_members, hierarchy):
|
def validate_controls(self, set_members):
|
||||||
"""Check if the controller set passes the validations
|
"""Check if the controller set passes the validations
|
||||||
|
|
||||||
Checks if all its set members are within the hierarchy of the root
|
Checks if all its set members are within the hierarchy of the root
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue