Skip to content

Commit

Permalink
Account for no nodes in container
Browse files Browse the repository at this point in the history
  • Loading branch information
tokejepsen committed Apr 4, 2024
1 parent 9ee2287 commit 8e10774
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def _parent_in_hierarchy(self, placeholder, container):
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)
Expand Down

0 comments on commit 8e10774

Please sign in to comment.