From 198c84105d230dcc8a41633f2a224a6153b9a3a8 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:01:59 +1000 Subject: [PATCH] fix(ui): compositor not setting processing flag when cleaning up --- .../src/features/controlLayers/konva/CanvasCompositorModule.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasCompositorModule.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasCompositorModule.ts index 66c8274f4fa..8439725de46 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasCompositorModule.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasCompositorModule.ts @@ -431,7 +431,6 @@ export class CanvasCompositorModule extends CanvasModuleBase { cache: this.manager.cache.transparencyCalculationCache, key: hash, getValue: async () => { - this.$isProcessing.set(true); const compositeInpaintMaskCanvas = this.getCompositeCanvas(adapters, rect); const compositeInpaintMaskImageData = await CanvasCacheModule.getWithFallback({ @@ -486,6 +485,7 @@ export class CanvasCompositorModule extends CanvasModuleBase { this.log.debug({ rect }, 'Calculating generation mode'); + this.$isProcessing.set(true); const compositeRasterLayerTransparency = await this.getTransparency( rasterLayerAdapters, rect, @@ -497,6 +497,7 @@ export class CanvasCompositorModule extends CanvasModuleBase { rect, compositeInpaintMaskHash ); + this.$isProcessing.set(false); let generationMode: GenerationMode; if (compositeRasterLayerTransparency === 'FULLY_TRANSPARENT') {