checkpoint trace work

This commit is contained in:
Stewart Allen 2020-12-01 19:54:54 -05:00
commit 44c1c850e9
11 changed files with 82 additions and 24 deletions

View file

@ -74,7 +74,7 @@
}
const { polys, lines, faces, cface, paths, cpath, color, off } = layer;
const meshes = this.meshes;
const meshes = [];
const defstate = !off;
const mats = [];
mats.state = defstate;
@ -185,6 +185,8 @@
mats.appendAll(mat);
}
this.new_meshes = meshes;
this.meshes.appendAll(meshes);
mats.forEach(mat => mat.visible = defstate);
return mats;
}