mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #6154 from ynput/bugfix/hierarchy-context-data-fill
Chore: Collect template data with hierarchy context
This commit is contained in:
commit
4de54c792f
2 changed files with 3 additions and 4 deletions
|
|
@ -410,9 +410,9 @@ class CollectAnatomyInstanceData(pyblish.api.ContextPlugin):
|
|||
"""
|
||||
|
||||
hierarchy_queue = collections.deque()
|
||||
hierarchy_queue.append(hierarchy_context)
|
||||
hierarchy_queue.append(copy.deepcopy(hierarchy_context))
|
||||
while hierarchy_queue:
|
||||
item = hierarchy_context.popleft()
|
||||
item = hierarchy_queue.popleft()
|
||||
if asset_name in item:
|
||||
return item[asset_name].get("tasks") or {}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@ class ExtractHierarchyToAYON(pyblish.api.ContextPlugin):
|
|||
if not AYON_SERVER_ENABLED:
|
||||
return
|
||||
|
||||
hierarchy_context = context.data.get("hierarchyContext")
|
||||
if not hierarchy_context:
|
||||
if not context.data.get("hierarchyContext"):
|
||||
self.log.debug("Skipping ExtractHierarchyToAYON")
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue