fix and clean Blender validators attrs

This commit is contained in:
Kaa Maurice 2022-08-11 16:09:16 +02:00
parent b8376b4a42
commit 0f90ca4a7a
6 changed files with 5 additions and 5 deletions

View file

@ -24,8 +24,6 @@ class ValidateCameraZeroKeyframe(pyblish.api.InstancePlugin):
label = "Zero Keyframe"
actions = [SelectInvalidAction]
_identity = mathutils.Matrix()
@staticmethod
def get_invalid(instance) -> List:
invalid = []

View file

@ -13,7 +13,7 @@ class ValidateMeshHasUvs(pyblish.api.InstancePlugin):
order = ValidateContentsOrder
hosts = ["blender"]
families = ["model"]
category = "geometry"
category = "uv"
label = "Mesh Has UV's"
actions = [SelectInvalidAction]
optional = True

View file

@ -13,6 +13,7 @@ class ValidateMeshNoNegativeScale(pyblish.api.Validator):
order = ValidateContentsOrder
hosts = ["blender"]
families = ["model"]
category = "geometry"
label = "Mesh No Negative Scale"
actions = [SelectInvalidAction]

View file

@ -18,6 +18,7 @@ class ValidateNoColonsInName(pyblish.api.InstancePlugin):
order = ValidateContentsOrder
hosts = ["blender"]
families = ["model", "rig"]
category = "cleanup"
version = (0, 1, 0)
label = "No Colons in names"
actions = [SelectInvalidAction]

View file

@ -12,7 +12,7 @@ class ValidateObjectIsInObjectMode(pyblish.api.InstancePlugin):
order = pyblish.api.ValidatorOrder - 0.01
hosts = ["blender"]
families = ["model", "rig", "layout"]
category = "geometry"
category = "cleanup"
label = "Validate Object Mode"
actions = [SelectInvalidAction]
optional = False

View file

@ -20,7 +20,7 @@ class ValidateTransformZero(pyblish.api.InstancePlugin):
order = ValidateContentsOrder
hosts = ["blender"]
families = ["model"]
category = "geometry"
category = "cleanup"
version = (0, 1, 0)
label = "Transform Zero"
actions = [SelectInvalidAction]