mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-15 10:35:21 -05:00
fix(ui): toggle control adapter layer vis
This commit is contained in:
committed by
Kent Keirsey
parent
5bf4d37949
commit
9d67ec9efe
@@ -473,7 +473,11 @@ const updateControlNetLayerImageAttrs = (
|
||||
let needsCache = false;
|
||||
const newWidth = stage.width() / stage.scaleX();
|
||||
const newHeight = stage.height() / stage.scaleY();
|
||||
if (konvaImage.width() !== newWidth || konvaImage.height() !== newHeight) {
|
||||
if (
|
||||
konvaImage.width() !== newWidth ||
|
||||
konvaImage.height() !== newHeight ||
|
||||
konvaImage.visible() !== reduxLayer.isEnabled
|
||||
) {
|
||||
konvaImage.setAttrs({
|
||||
opacity: reduxLayer.opacity,
|
||||
scaleX: 1,
|
||||
|
||||
Reference in New Issue
Block a user