mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Account for locked nodes.
This commit is contained in:
parent
b2ff3b6fc9
commit
ec1fe84224
1 changed files with 3 additions and 0 deletions
|
|
@ -325,6 +325,9 @@ class MayaPlaceholderLoadPlugin(PlaceholderPlugin, PlaceholderLoadMixin):
|
|||
placeholder.scene_identifier, parent=True, fullPath=True
|
||||
)
|
||||
for node in set(nodes_to_parent):
|
||||
if cmds.lockNode(node, lock=True, query=True):
|
||||
continue
|
||||
|
||||
cmds.reorder(node, front=True)
|
||||
cmds.reorder(node, relative=placeholder.data["index"])
|
||||
cmds.xform(node, matrix=placeholder_form, ws=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue