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

Commit

Permalink
Merge pull request #3030 from BigRoy/fix3026
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolar authored Apr 7, 2022
2 parents f4bf3a6 + 31683fb commit e35b322
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ def get_invalid(cls, instance):
# list when there are no actual cameras results in
# still an empty 'invalid' list
if len(cameras) < 1:
raise RuntimeError("No cameras in instance.")
if members:
# If there are members in the instance return all of
# them as 'invalid' so the user can still select invalid
cls.log.error("No cameras found in instance "
"members: {}".format(members))
return members

raise RuntimeError("No cameras found in empty instance.")

# non-camera shapes
valid_shapes = cmds.ls(shapes, type=('camera', 'locator'), long=True)
Expand Down

0 comments on commit e35b322

Please sign in to comment.