mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): hide tool previews when staging
This commit is contained in:
committed by
Kent Keirsey
parent
aa9594cb42
commit
a6062a4229
@@ -171,6 +171,7 @@ export class CanvasToolModule extends CanvasModuleBase {
|
||||
const cursorPos = this.$cursorPos.get();
|
||||
const tool = this.$tool.get();
|
||||
const isFiltering = this.manager.stateApi.$isFiltering.get();
|
||||
const isStaging = this.manager.stagingArea.$isStaging.get();
|
||||
|
||||
const isDrawable =
|
||||
!!selectedEntity &&
|
||||
@@ -182,7 +183,7 @@ export class CanvasToolModule extends CanvasModuleBase {
|
||||
|
||||
stage.setIsDraggable(tool === 'view');
|
||||
|
||||
if (!cursorPos || renderedEntityCount === 0 || isFiltering) {
|
||||
if (!cursorPos || renderedEntityCount === 0 || isFiltering || isStaging) {
|
||||
// We can bail early if the mouse isn't over the stage or there are no layers
|
||||
this.konva.group.visible(false);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user