Skip to content

Commit 198c841

Browse files
fix(ui): compositor not setting processing flag when cleaning up
1 parent 2453b9f commit 198c841

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

invokeai/frontend/web/src/features/controlLayers/konva/CanvasCompositorModule.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ export class CanvasCompositorModule extends CanvasModuleBase {
431431
cache: this.manager.cache.transparencyCalculationCache,
432432
key: hash,
433433
getValue: async () => {
434-
this.$isProcessing.set(true);
435434
const compositeInpaintMaskCanvas = this.getCompositeCanvas(adapters, rect);
436435

437436
const compositeInpaintMaskImageData = await CanvasCacheModule.getWithFallback({
@@ -486,6 +485,7 @@ export class CanvasCompositorModule extends CanvasModuleBase {
486485

487486
this.log.debug({ rect }, 'Calculating generation mode');
488487

488+
this.$isProcessing.set(true);
489489
const compositeRasterLayerTransparency = await this.getTransparency(
490490
rasterLayerAdapters,
491491
rect,
@@ -497,6 +497,7 @@ export class CanvasCompositorModule extends CanvasModuleBase {
497497
rect,
498498
compositeInpaintMaskHash
499499
);
500+
this.$isProcessing.set(false);
500501

501502
let generationMode: GenerationMode;
502503
if (compositeRasterLayerTransparency === 'FULLY_TRANSPARENT') {

0 commit comments

Comments
 (0)