mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
moved check for referenced node to get_invalid
This commit is contained in:
parent
bc5ddf556a
commit
3a78fbbafb
1 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue