From c8e270742170455a236de34e0e422e63be82145d Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 12 Mar 2021 12:33:24 +1100 Subject: [PATCH] Remove merge shape before single layer fog --- src/components/map/MapFog.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/map/MapFog.js b/src/components/map/MapFog.js index dbd3ee1..fa12e6c 100644 --- a/src/components/map/MapFog.js +++ b/src/components/map/MapFog.js @@ -208,9 +208,7 @@ function MapFog({ const shapesToSubtract = shapes.filter((shape) => cut ? !shape.visible : shape.visible ); - const subtractAction = new SubtractShapeAction( - mergeFogShapes(shapesToSubtract, !cut) - ); + const subtractAction = new SubtractShapeAction(shapesToSubtract); const state = subtractAction.execute({ [drawingShape.id]: drawingShape, }); @@ -381,9 +379,7 @@ function MapFog({ const shapesToSubtract = shapes.filter((shape) => cut ? !shape.visible : shape.visible ); - const subtractAction = new SubtractShapeAction( - mergeFogShapes(shapesToSubtract, !cut) - ); + const subtractAction = new SubtractShapeAction(shapesToSubtract); const state = subtractAction.execute({ [polygonShape.id]: polygonShape, });