mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Do not modify roots in-place so that roots remains the roots and doesn't contain the descendendants + ignore intermediate objects since they would not be exported anyway
This commit is contained in:
parent
02ccceaf24
commit
2bf6ed7115
1 changed files with 3 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ from maya import cmds
|
|||
from ayon_core.pipeline import publish
|
||||
from ayon_core.hosts.maya.api.alembic import extract_alembic
|
||||
from ayon_core.hosts.maya.api.lib import (
|
||||
get_all_children,
|
||||
suspended_refresh,
|
||||
maintained_selection,
|
||||
iter_visible_nodes_in_range
|
||||
|
|
@ -518,9 +519,7 @@ class ExtractAnimation(ExtractAlembic):
|
|||
roots = cmds.sets(out_set, query=True) or []
|
||||
|
||||
# Include all descendants
|
||||
nodes = roots
|
||||
nodes += cmds.listRelatives(
|
||||
roots, allDescendents=True, fullPath=True
|
||||
) or []
|
||||
nodes = roots.copy()
|
||||
nodes.extend(get_all_children(roots, ignore_intermediate_objects=True))
|
||||
|
||||
return nodes, roots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue