Update fog edit pattern opacity for new shading method

This commit is contained in:
Mitchell McCaffrey 2021-06-06 09:05:39 +10:00
parent 27c68b499d
commit f5ccbe8f8f
2 changed files with 1 additions and 5 deletions

View File

@ -490,11 +490,7 @@ function MapFog({
const holes =
shape.data.holes &&
shape.data.holes.map((hole) => hole.reduce(reducePoints, []));
const opacity = editable
? !shape.visible
? editOpacity / 2
: editOpacity
: 1;
const opacity = editable ? editOpacity : 1;
// Control opacity only on fill as using opacity with stroke leads to performance issues
const fill = new Color(colors[shape.color] || shape.color)
.alpha(opacity)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 B

After

Width:  |  Height:  |  Size: 802 B