mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #3030 from BigRoy/fix3026
This commit is contained in:
commit
e35b3220b7
1 changed files with 8 additions and 1 deletions
|
|
@ -40,7 +40,14 @@ class ValidateCameraContents(pyblish.api.InstancePlugin):
|
|||
# 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue