mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
skipping locators in validator
This commit is contained in:
parent
015b8b7e2d
commit
1b99fdf88f
1 changed files with 5 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin):
|
|||
"""Get all nodes which do not match the criteria"""
|
||||
|
||||
invalid = []
|
||||
types_to_skip = ["locator"]
|
||||
|
||||
# get asset id
|
||||
nodes = instance.data.get("out_hierarchy", instance[:])
|
||||
|
|
@ -50,6 +51,10 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin):
|
|||
if not obj_type:
|
||||
continue
|
||||
|
||||
# Skip specific types
|
||||
if cmds.objectType(node) in types_to_skip:
|
||||
continue
|
||||
|
||||
# Get the current id of the node
|
||||
node_id = lib.get_id(node)
|
||||
if not node_id:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue