From a4b6713acc7f6a96a09a46622d74b954864a05bb Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Wed, 11 Nov 2020 12:21:08 -0500 Subject: [PATCH] fix cam slicing down to 0 --- src/kiri/slicer2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kiri/slicer2.js b/src/kiri/slicer2.js index 3a3cd4f4..e2cc75a0 100644 --- a/src/kiri/slicer2.js +++ b/src/kiri/slicer2.js @@ -356,7 +356,8 @@ zmin = (opt.min || this.bounds.min.z) + boff, zmax = (opt.max || this.bounds.max.z) - toff, steps = (zmax - zmin) / step, - count = Math.floor(steps), + rem = steps % 1 != 0 ? 0 : 1, + count = Math.floor(steps) + rem, array = []; if (opt.fit) {