flame: fix integrating batch group to loader with bgroup

This commit is contained in:
Jakub Jezek 2022-04-07 13:30:43 +02:00
parent c2788070a3
commit c2a4176067
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
2 changed files with 5 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class LoadClipBatch(opfapi.ClipLoader):
def load(self, context, name, namespace, options):
# get flame objects
self.batch = flame.batch
self.batch = options.get("batch") or flame.batch
# load clip to timeline and get main variables
namespace = namespace

View file

@ -130,7 +130,10 @@ class IntegrateBatchGroup(pyblish.api.InstancePlugin):
try:
op_pipeline.load.load_with_repre_context(
loader_plugin, repre_context, **{
"data": {"workdir": self.task_workdir}
"data": {
"workdir": self.task_workdir,
"batch": bgroup
}
})
except op_pipeline.load.IncompatibleLoaderError as msg:
self.log.error(