mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #3638 from pypeclub/bugfix/integrate_hero_repre_context
General: Hero version representations have full context
This commit is contained in:
commit
9372f114ae
1 changed files with 3 additions and 7 deletions
|
|
@ -313,13 +313,9 @@ class IntegrateHeroVersion(pyblish.api.InstancePlugin):
|
|||
}
|
||||
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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue