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 #3638 from pypeclub/bugfix/integrate_hero_repre_co…
Browse files Browse the repository at this point in the history
…ntext

General: Hero version representations have full context
  • Loading branch information
iLLiCiTiT authored Aug 12, 2022
2 parents 0c277f0 + 4bb9886 commit 9372f11
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions openpype/plugins/publish/integrate_hero_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,9 @@ def integrate_instance(
}
repre_context = template_filled.used_values
for key in self.db_representation_context_keys:
if (
key in repre_context or
key not in anatomy_data
):
continue

repre_context[key] = anatomy_data[key]
value = anatomy_data.get(key)
if value is not None:
repre_context[key] = value

# Prepare new repre
repre = copy.deepcopy(repre_info["representation"])
Expand Down

0 comments on commit 9372f11

Please sign in to comment.