From 9826a6b0657e85bc14a0dcbaf4d887cd46daca95 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Fri, 15 Nov 2024 12:21:50 -0500 Subject: [PATCH] fix poly clone Z bug affecting trace --- src/geo/polygon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/geo/polygon.js b/src/geo/polygon.js index 5f6b9c6e..1ffd0c00 100644 --- a/src/geo/polygon.js +++ b/src/geo/polygon.js @@ -956,6 +956,7 @@ class Polygon { ln = ar.length, i = 0; while (i < ln) ar[i++].z = z; + this.z = z; if (this.inner) this.inner.forEach(c => c.setZ(z)); return this; }