fix(ui): transparency effect not updating

This commit is contained in:
psychedelicious 2024-08-28 16:08:12 +10:00
parent 972f03960a
commit 64e60a7fde

View File

@ -112,12 +112,11 @@ export class CanvasEntityLayerAdapter extends CanvasModuleABC {
this.renderer.updateOpacity(opacity);
}
if (state.type === 'control_layer' && this.state.type === 'control_layer') {
if (this.isFirstRender || state.withTransparencyEffect !== this.state.withTransparencyEffect) {
if (state.type === 'control_layer' && prevState.type === 'control_layer') {
if (this.isFirstRender || state.withTransparencyEffect !== prevState.withTransparencyEffect) {
this.renderer.updateTransparencyEffect(state.withTransparencyEffect);
}
}
// this.transformer.syncInteractionState();
if (this.isFirstRender) {
this.transformer.updateBbox();