Fix fog fill pattern with fog preview

This commit is contained in:
Mitchell McCaffrey 2021-02-22 19:58:46 +11:00
parent f5378e392b
commit 5fb7041698

View File

@ -501,7 +501,7 @@ function MapFog({
strokeWidth={gridStrokeWidth * shape.strokeWidth}
opacity={editable ? (!shape.visible ? 0.2 : 0.5) : 1}
fillPatternImage={patternImage}
fillPriority={active && !shape.visible ? "pattern" : "color"}
fillPriority={editable && !shape.visible ? "pattern" : "color"}
holes={holes}
// Disable collision if the fog is transparent and we're not editing it
// This allows tokens to be moved under the fog