Merge pull request #370 from ynput/bugfix/maya_fix_templated_workfile_builder

Maya: Account for no nodes in container
This commit is contained in:
Jakub Trllo 2024-04-05 17:32:33 +02:00 committed by GitHub
commit 37f11f9bba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -286,7 +286,7 @@ class MayaPlaceholderLoadPlugin(PlaceholderPlugin, PlaceholderLoadMixin):
if not container:
return
roots = cmds.sets(container, q=True)
roots = cmds.sets(container, q=True) or []
ref_node = None
try:
ref_node = get_reference_node(roots)