Merge pull request #872 from BigRoy/enhancement/workfile_template_build_allow_empty_repre_name

Workfile template build: Allow empty representation name
This commit is contained in:
Roy Nieterau 2024-09-06 00:51:47 +02:00 committed by GitHub
commit 167ec7a3ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1519,9 +1519,10 @@ class PlaceholderLoadMixin(object):
if "asset" in placeholder.data:
return []
representation_name = placeholder.data["representation"]
if not representation_name:
return []
representation_names = None
representation_name: str = placeholder.data["representation"]
if representation_name:
representation_names = [representation_name]
project_name = self.builder.project_name
current_folder_entity = self.builder.current_folder_entity
@ -1578,7 +1579,7 @@ class PlaceholderLoadMixin(object):
)
return list(get_representations(
project_name,
representation_names={representation_name},
representation_names=representation_names,
version_ids=version_ids
))