Remove merge shape before single layer fog
This commit is contained in:
parent
74b9e91486
commit
c8e2707421
@ -208,9 +208,7 @@ function MapFog({
|
|||||||
const shapesToSubtract = shapes.filter((shape) =>
|
const shapesToSubtract = shapes.filter((shape) =>
|
||||||
cut ? !shape.visible : shape.visible
|
cut ? !shape.visible : shape.visible
|
||||||
);
|
);
|
||||||
const subtractAction = new SubtractShapeAction(
|
const subtractAction = new SubtractShapeAction(shapesToSubtract);
|
||||||
mergeFogShapes(shapesToSubtract, !cut)
|
|
||||||
);
|
|
||||||
const state = subtractAction.execute({
|
const state = subtractAction.execute({
|
||||||
[drawingShape.id]: drawingShape,
|
[drawingShape.id]: drawingShape,
|
||||||
});
|
});
|
||||||
@ -381,9 +379,7 @@ function MapFog({
|
|||||||
const shapesToSubtract = shapes.filter((shape) =>
|
const shapesToSubtract = shapes.filter((shape) =>
|
||||||
cut ? !shape.visible : shape.visible
|
cut ? !shape.visible : shape.visible
|
||||||
);
|
);
|
||||||
const subtractAction = new SubtractShapeAction(
|
const subtractAction = new SubtractShapeAction(shapesToSubtract);
|
||||||
mergeFogShapes(shapesToSubtract, !cut)
|
|
||||||
);
|
|
||||||
const state = subtractAction.execute({
|
const state = subtractAction.execute({
|
||||||
[polygonShape.id]: polygonShape,
|
[polygonShape.id]: polygonShape,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user