mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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
|
repre_context = template_filled.used_values
|
||||||
for key in self.db_representation_context_keys:
|
for key in self.db_representation_context_keys:
|
||||||
if (
|
value = anatomy_data.get(key)
|
||||||
key in repre_context or
|
if value is not None:
|
||||||
key not in anatomy_data
|
repre_context[key] = value
|
||||||
):
|
|
||||||
continue
|
|
||||||
|
|
||||||
repre_context[key] = anatomy_data[key]
|
|
||||||
|
|
||||||
# Prepare new repre
|
# Prepare new repre
|
||||||
repre = copy.deepcopy(repre_info["representation"])
|
repre = copy.deepcopy(repre_info["representation"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue