mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
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:
parent
7340061243
commit
c4d91fb9c0
1 changed files with 4 additions and 6 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue