Remove merge shape before single layer fog

This commit is contained in:
Mitchell McCaffrey 2021-03-12 12:33:24 +11:00
parent 74b9e91486
commit c8e2707421

View File

@ -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,
});