mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Cosmetics
This commit is contained in:
parent
fbc0430bb2
commit
5b7d419e18
2 changed files with 4 additions and 4 deletions
|
|
@ -3944,8 +3944,10 @@ def create_rig_animation_instance(nodes, context, namespace, log=None):
|
|||
assert controls, "No controls_SET in rig, this is a bug."
|
||||
|
||||
# Find the roots amongst the loaded nodes
|
||||
roots = cmds.ls(nodes, assemblies=True, long=True) or \
|
||||
get_highest_in_hierarchy(nodes)
|
||||
roots = (
|
||||
cmds.ls(nodes, assemblies=True, long=True) or
|
||||
get_highest_in_hierarchy(nodes)
|
||||
)
|
||||
assert roots, "No root nodes in rig, this is a bug."
|
||||
|
||||
asset = legacy_io.Session["AVALON_ASSET"]
|
||||
|
|
|
|||
|
|
@ -33,5 +33,3 @@ class RecreateRigAnimationInstance(InventoryAction):
|
|||
nodes = get_container_members(container)
|
||||
|
||||
create_rig_animation_instance(nodes, context, namespace)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue