fix slice first height with grouped parts

This commit is contained in:
Stewart Allen 2020-06-09 23:20:26 -04:00
commit fabfa872bc
2 changed files with 12 additions and 2 deletions

View file

@ -103,7 +103,7 @@ let gs_kiri_slicer = exports;
bounds = btmp;
}
let zMin = options.zmin || Math.floor(bounds.min.z),
let zMin = options.zmin || options.firstHeight || Math.floor(bounds.min.z),
zMax = options.zmax || Math.ceil(bounds.max.z),
zInc = options.height,
zIncMin = options.minHeight,