Merge pull request #3638 from pypeclub/bugfix/integrate_hero_repre_context

General: Hero version representations have full context
This commit is contained in:
Jakub Trllo 2022-08-12 13:36:59 +02:00 committed by GitHub
commit 9372f114ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"])