Fix to retain layer opacity on mode switch. (#8879)

Co-authored-by: dunkeroni <dunkeroni@gmail.com>
This commit is contained in:
Valeri Che 2026-04-06 01:33:47 +03:00 committed by GitHub
parent 471ab9d9c0
commit 82f3dc9032
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -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();
};

View File

@ -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;