mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Opt-out early if there are no containers in the scene file
This commit is contained in:
parent
f0ea841ebf
commit
5a44efd2ad
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue