filter dup slice indices in cam. fix factor declaration

This commit is contained in:
Stewart Allen 2021-09-21 13:17:05 -04:00
commit 6051177161
2 changed files with 4 additions and 3 deletions

View file

@ -1100,8 +1100,8 @@
}
function sliceWidget(widget) {
widget.stack = STACKS.create(widget.id, widget.mesh),
factor = (widget.getVertices().count / defvert);
widget.stack = STACKS.create(widget.id, widget.mesh);
let factor = (widget.getVertices().count / defvert);
// compensate for zcut (widget moved through floor)
widget.stack.obj.view.position.z = widget.track.zcut || 0;