Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6154 from ynput/bugfix/hierarchy-context-data-fill
Browse files Browse the repository at this point in the history
Chore: Collect template data with hierarchy context
  • Loading branch information
jakubjezek001 authored Jan 23, 2024
2 parents 2245f6c + 9a6f518 commit 4de54c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openpype/plugins/publish/collect_anatomy_instance_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ def _find_tasks_info_in_hierarchy(self, hierarchy_context, asset_name):
"""

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 {}

Expand Down
3 changes: 1 addition & 2 deletions openpype/plugins/publish/extract_hierarchy_to_ayon.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def process(self, context):
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

Expand Down

0 comments on commit 4de54c7

Please sign in to comment.