prevent cached vertex mutation

This commit is contained in:
Stewart Allen 2026-04-16 08:00:21 -04:00
commit faf92873e7

View file

@ -56,7 +56,7 @@ export class Topo {
this.zBottom = state.zBottom ?? 0;
this.resolution = resolution;
this.vertices = widget.getGeoVertices({ unroll: true, translate: true });
this.vertices = widget.getGeoVertices({ unroll: true, translate: true }).slice();
this.tabverts = widget.getTabVertices();
this.tool = tool.generateProfile(resolution).profile;
this.maxo = tool.profileDim.maxo * resolution;