fix poly clone Z bug affecting trace
This commit is contained in:
parent
3dfd210739
commit
9826a6b065
1 changed files with 1 additions and 0 deletions
|
|
@ -956,6 +956,7 @@ class Polygon {
|
||||||
ln = ar.length,
|
ln = ar.length,
|
||||||
i = 0;
|
i = 0;
|
||||||
while (i < ln) ar[i++].z = z;
|
while (i < ln) ar[i++].z = z;
|
||||||
|
this.z = z;
|
||||||
if (this.inner) this.inner.forEach(c => c.setZ(z));
|
if (this.inner) this.inner.forEach(c => c.setZ(z));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue