mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
code clean up with bigroy's comment
This commit is contained in:
parent
56f4f04d1c
commit
c7ba4be69c
1 changed files with 5 additions and 9 deletions
|
|
@ -32,15 +32,11 @@ class ValidateMeshHasUVs(pyblish.api.InstancePlugin,
|
|||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
invalid_mesh_type = [member for member in instance.data["members"]
|
||||
if rt.isProperty(member, "mesh")]
|
||||
if invalid_mesh_type:
|
||||
invalid_uv = [member for member in instance.data["members"]
|
||||
if not member.mesh.numTVerts > 0]
|
||||
if invalid_uv:
|
||||
cls.log.error("Meshes detected with invalid UVs")
|
||||
|
||||
return invalid_uv
|
||||
meshes = [member for member in instance.data["members"]
|
||||
if rt.isProperty(member, "mesh")]
|
||||
invalid = [member for member in meshes
|
||||
if not member.mesh.numTVerts > 0]
|
||||
return invalid
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue