Make it so that you can select instance with select action if its empty

This commit is contained in:
Roy Nieterau 2023-01-27 13:23:46 +01:00
parent cb23a1d2c1
commit e546a4e5b5

View file

@ -31,7 +31,7 @@ class ValidateModelContent(pyblish.api.InstancePlugin):
content_instance = instance.data.get("setMembers", None)
if not content_instance:
cls.log.error("Instance has no nodes!")
return True
return [instance.data["name"]]
# All children will be included in the extracted export so we also
# validate *all* descendents of the set members and we skip any