mirror of
https://github.com/invoke-ai/InvokeAI
synced 2026-04-18 20:55:46 +02:00
Fix to retain layer opacity on mode switch. (#8879)
Co-authored-by: dunkeroni <dunkeroni@gmail.com>
This commit is contained in:
parent
471ab9d9c0
commit
82f3dc9032
@ -542,6 +542,7 @@ export abstract class CanvasEntityAdapterBase<T extends CanvasEntityState, U ext
|
||||
this.renderer.updateCompositingRectSize();
|
||||
this.renderer.updateCompositingRectPosition();
|
||||
this.renderer.updateCompositingRectFill();
|
||||
this.renderer.updateOpacity();
|
||||
}
|
||||
this.renderer.syncKonvaCache();
|
||||
};
|
||||
|
||||
@ -320,10 +320,6 @@ export class CanvasEntityObjectRenderer extends CanvasModuleBase {
|
||||
};
|
||||
|
||||
updateOpacity = throttle(() => {
|
||||
if (!this.parent.konva.layer.visible()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.log.trace('Updating opacity');
|
||||
|
||||
const opacity = this.parent.state.opacity;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user