Skip to content

Commit

Permalink
fix(ui): compositor not setting processing flag when cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Oct 30, 2024
1 parent 2453b9f commit 198c841
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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,
Expand All @@ -497,6 +497,7 @@ export class CanvasCompositorModule extends CanvasModuleBase {
rect,
compositeInpaintMaskHash
);
this.$isProcessing.set(false);

let generationMode: GenerationMode;
if (compositeRasterLayerTransparency === 'FULLY_TRANSPARENT') {
Expand Down

0 comments on commit 198c841

Please sign in to comment.