Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Workfile Template Builder: Avoid issues on get_representations when l…
Browse files Browse the repository at this point in the history
…inked_asset_names is empty
  • Loading branch information
BenSouchet committed Sep 11, 2024
1 parent d9731d0 commit fc1403f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openpype/pipeline/workfile/workfile_template_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,6 +1621,9 @@ def _get_representations(self, placeholder):
if asset_regex.match(asset_name):
linked_asset_names.append(asset_name)

if not linked_asset_names:
return []

context_filters = {
"asset": linked_asset_names,
"subset": [re.compile(placeholder.data["subset"])],
Expand Down

0 comments on commit fc1403f

Please sign in to comment.