Merge branch 'develop' into enhancement/usd_contribution_attributes_per_instance_toggle

This commit is contained in:
Jakub Trllo 2024-10-29 12:24:22 +01:00 committed by GitHub
commit c5a31bbefd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -383,6 +383,13 @@ def get_representations_delivery_template_data(
continue
template_data = repre_entity["context"]
# Bug in 'ayon_api', 'get_representations_hierarchy' did not fully
# convert representation entity. Fixed in 'ayon_api' 1.0.10.
if isinstance(template_data, str):
con = ayon_api.get_server_api_connection()
repre_entity = con._representation_conversion(repre_entity)
template_data = repre_entity["context"]
template_data.update(copy.deepcopy(general_template_data))
template_data.update(get_folder_template_data(
repre_hierarchy.folder, project_name