diff --git a/src/data/restore.ts b/src/data/restore.ts index 96a2aac8..6d648aab 100644 --- a/src/data/restore.ts +++ b/src/data/restore.ts @@ -56,7 +56,7 @@ export function restore( id: element.id || nanoid(), fillStyle: element.fillStyle || "hachure", strokeWidth: element.strokeWidth || 1, - roughness: element.roughness || 1, + roughness: element.roughness ?? 1, opacity: element.opacity === null || element.opacity === undefined ? 100