From cce6bf9428adb1f0413ad6bf579936a7466da81c Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 31 Jul 2024 20:53:46 +1000 Subject: [PATCH] fix(ui): layer visibility toggle --- .../web/src/features/controlLayers/konva/CanvasLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasLayer.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasLayer.ts index 512c5b11f7..360f6c5986 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasLayer.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasLayer.ts @@ -268,7 +268,7 @@ export class CanvasLayer extends CanvasEntity { this._log.trace('Updating visibility'); const isEnabled = get(arg, 'isEnabled', this._state.isEnabled); const hasObjects = this.objects.size > 0 || this._drawingBuffer !== null; - this.konva.layer.visible(isEnabled || hasObjects); + this.konva.layer.visible(isEnabled && hasObjects); } updatePosition(arg?: { position: Coordinate }) {