Explorar o código

fix zero-coalescing roughness (#924)

David Luzar %!s(int64=5) %!d(string=hai) anos
pai
achega
3a5ca27600
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/data/restore.ts

+ 1 - 1
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