diff --git a/blender_cloud/flamenco/__init__.py b/blender_cloud/flamenco/__init__.py index 7d675be..9f336e8 100644 --- a/blender_cloud/flamenco/__init__.py +++ b/blender_cloud/flamenco/__init__.py @@ -128,6 +128,9 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin, if not await self.authenticate(context): return + context.window_manager.progress_begin(0, 4) + context.window_manager.progress_update(1) + from pillarsdk import exceptions as sdk_exceptions from ..blender import preferences @@ -138,6 +141,8 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin, if not outfile: return + context.window_manager.progress_update(3) + # Create the job at Flamenco Server. prefs = preferences() scene = context.scene @@ -174,6 +179,10 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin, self.report({'INFO'}, 'Flamenco job created.') self.quit() + def quit(self): + super().quit() + bpy.context.window_manager.progress_end() + async def bam_pack(self, filepath: Path) -> (typing.Optional[Path], typing.List[Path]): """BAM-packs the blendfile to the destination directory.