From 3a78fbbafbd6cc90c656ebbbeefe5f7605d321d0 Mon Sep 17 00:00:00 2001 From: aardschok Date: Wed, 1 Nov 2017 12:05:34 +0100 Subject: [PATCH] moved check for referenced node to `get_invalid` --- .../validate_animation_out_set_related_node_ids.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/colorbleed/plugins/maya/publish/validate_animation_out_set_related_node_ids.py b/colorbleed/plugins/maya/publish/validate_animation_out_set_related_node_ids.py index bdda287e3c..23cb150b04 100644 --- a/colorbleed/plugins/maya/publish/validate_animation_out_set_related_node_ids.py +++ b/colorbleed/plugins/maya/publish/validate_animation_out_set_related_node_ids.py @@ -17,7 +17,7 @@ def get_parent(node): class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin): - """Validate if nodes have related IDs to the source (original shapes) + """Validate if deformed shapes have related IDs to the original shapes Any intermediate shapes which are created when creating deformers on shapes will need to get the correct ID to ensure the look assignment still @@ -63,6 +63,10 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin): if not node_id: continue + # We only check when the node is *not* referenced + if cmds.referenceQuery(node, isNodeReferenced=True): + return + root_id = cls.get_history_root_id(node=node) if root_id is not None: invalid.append(node) @@ -84,10 +88,6 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin): node = cmds.ls(node, long=True)[0] - # We only check when the node is *not* referenced - if cmds.referenceQuery(node, isNodeReferenced=True): - return - # Find all similar nodes in history history = cmds.listHistory(node) node_type = cmds.nodeType(node)