Skip to content

Commit

Permalink
onle eval usd_compatible_representations parm if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Dec 19, 2024
1 parent 5b75c01 commit 2b4b8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/ayon_houdini/api/hda_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def get_available_representations(node):
version_ids={version_entity["id"]},
fields={"name"},
representation_names=ALLOWED_USD_REPRESENTATIONS \
if node.parm("usd_compatible_representations").eval() else None
if node.parm("usd_compatible_representations") and node.parm("usd_compatible_representations").eval() else None
)
representations_names = [n["name"] for n in representations]
return representations_names
Expand Down

0 comments on commit 2b4b8f3

Please sign in to comment.