Optimized fog shapes to only include needed data

This commit is contained in:
Mitchell McCaffrey
2021-01-23 15:44:25 +11:00
parent 96450eb1d0
commit b9d8a007e5
3 changed files with 31 additions and 2 deletions

View File

@@ -314,7 +314,7 @@ function MapFog({
} else if (toolSettings.type === "toggle") {
onShapesEdit(
editingShapes.map((shape) => ({
...shape,
id: shape.id,
visible: !shape.visible,
}))
);