mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Add description to error message
This commit is contained in:
parent
0e30dfb2a8
commit
64be88cff5
1 changed files with 12 additions and 1 deletions
|
|
@ -24,6 +24,16 @@ class ValidateMeshLaminaFaces(pyblish.api.InstancePlugin,
|
|||
actions = [ayon_core.hosts.maya.api.action.SelectInvalidAction]
|
||||
optional = True
|
||||
|
||||
description = (
|
||||
"## Meshes with Lamina Faces\n"
|
||||
"Detected meshes with lamina faces. <b>Lamina faces</b> are faces "
|
||||
"that share all of their edges and thus are merged together on top of "
|
||||
"each other.\n\n"
|
||||
"### How to repair?\n"
|
||||
"You can repair them by using Maya's modeling tool `Mesh > Cleanup..` "
|
||||
"and select to cleanup matching polygons for lamina faces."
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def get_invalid(instance):
|
||||
meshes = cmds.ls(instance, type='mesh', long=True)
|
||||
|
|
@ -41,4 +51,5 @@ class ValidateMeshLaminaFaces(pyblish.api.InstancePlugin,
|
|||
|
||||
if invalid:
|
||||
raise PublishValidationError(
|
||||
"Meshes found with lamina faces: {0}".format(invalid))
|
||||
"Meshes found with lamina faces: {0}".format(invalid),
|
||||
description=self.description)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue