Opt-out early if there are no containers in the scene file

This commit is contained in:
Roy Nieterau 2025-07-23 11:31:29 +02:00
parent f0ea841ebf
commit 5a44efd2ad

View file

@ -45,6 +45,11 @@ class CollectSceneLoadedVersions(pyblish.api.ContextPlugin):
f"loaded versions in scene.")
return
if not containers:
# Opt out early if there are no containers
self.log.debug("No loaded containers found in scene.")
return
repre_ids = {
container["representation"]
for container in containers