Remove redundant hierarchy argument for methods

This commit is contained in:
Roy Nieterau 2018-01-19 12:28:34 +01:00
parent c143f164d0
commit 9a702cbd25

View file

@ -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