mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): toggle control adapter layer vis
This commit is contained in:
parent
5bf4d37949
commit
9d67ec9efe
@ -473,7 +473,11 @@ const updateControlNetLayerImageAttrs = (
|
|||||||
let needsCache = false;
|
let needsCache = false;
|
||||||
const newWidth = stage.width() / stage.scaleX();
|
const newWidth = stage.width() / stage.scaleX();
|
||||||
const newHeight = stage.height() / stage.scaleY();
|
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({
|
konvaImage.setAttrs({
|
||||||
opacity: reduxLayer.opacity,
|
opacity: reduxLayer.opacity,
|
||||||
scaleX: 1,
|
scaleX: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user