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