feat(ui): brush preview opacity at 0.5 when drawing on mask

This commit is contained in:
psychedelicious
2024-09-02 11:55:12 +10:00
parent 8df9c43079
commit dc6bd98266

View File

@@ -239,7 +239,7 @@ export class CanvasStateApiModule extends CanvasModuleBase {
const selectedEntity = this.getSelectedEntity();
if (selectedEntity?.state.type === 'regional_guidance' || selectedEntity?.state.type === 'inpaint_mask') {
// The brush should use the mask opacity for these enktity types
return { ...selectedEntity.state.fill.color, a: 1 };
return { ...selectedEntity.state.fill.color, a: 0.5 };
} else {
return this.getToolState().fill;
}