mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix the bug shown in removing instance after refractoring
This commit is contained in:
parent
cca37521e9
commit
932c807913
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ class MaxCreator(Creator, MaxCreatorBase):
|
|||
for instance in instances:
|
||||
if instance_node := rt.GetNodeByName(instance.data.get("instance_node")): # noqa
|
||||
rt.Select(instance_node)
|
||||
rt.custAttributes.add(instance_node.baseObject, "openPypeData")
|
||||
rt.execute(f'for o in selection do for c in o.children do c.parent = undefined') # noqa
|
||||
rt.Delete(instance_node)
|
||||
|
||||
self._remove_instance_from_context(instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue