Skip to content

Commit

Permalink
Merge pull request #6 from mottosso/master
Browse files Browse the repository at this point in the history
Repair validate_id.py
  • Loading branch information
mottosso authored Jan 17, 2017
2 parents 3d0a9fe + d159f5c commit 4495656
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mindbender/plugins/validate_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ class ValidateMindbenderID(pyblish.api.InstancePlugin):
def process(self, instance):
from maya import cmds

nodes = list(instance)
nodes += cmds.listRelatives(instance, allDescendents=True) or list()
missing = list()
for node in cmds.listRelatives(instance, allDescendents=True):

for node in nodes:

# Only check transforms with a shape
if not cmds.listRelatives(node, shapes=True):
Expand Down

0 comments on commit 4495656

Please sign in to comment.