Improve docstring and error message

- Previously it said something about translate, rotate and scale. However this validator doesn't check that at all and thus the docstring was incorrect.
This commit is contained in:
Roy Nieterau 2021-12-30 17:34:18 +01:00
parent 7340061243
commit c4d91fb9c0

View file

@ -9,11 +9,9 @@ from avalon.maya import maintained_selection
class ValidateShapeZero(pyblish.api.Validator):
"""shape can't have any values
"""Shape components may not have any "tweak" values
To solve this issue, try freezing the shapes. So long
as the translation, rotation and scaling values are zero,
you're all good.
To solve this issue, try freezing the shapes.
"""
@ -67,5 +65,5 @@ class ValidateShapeZero(pyblish.api.Validator):
invalid = self.get_invalid(instance)
if invalid:
raise ValueError("Nodes found with shape or vertices not freezed"
"values: {0}".format(invalid))
raise ValueError("Shapes found with non-zero component tweaks: "
"{0}".format(invalid))