mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Lock the shape after creating to avoid deletion.
This commit is contained in:
parent
5adf396610
commit
deedc893bf
1 changed files with 3 additions and 0 deletions
|
|
@ -47,6 +47,9 @@ class MultiverseUsdLoader(load.LoaderPlugin):
|
|||
transform = cmds.listRelatives(
|
||||
shape, parent=True, fullPath=True)[0]
|
||||
|
||||
# Lock the shape node so the user cannot delete it.
|
||||
cmds.lockNode(shape, lock=True)
|
||||
|
||||
nodes = [transform, shape]
|
||||
self[:] = nodes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue