omit top/bottom from interleaving
This commit is contained in:
parent
cbfa05e1da
commit
570242e126
1 changed files with 5 additions and 2 deletions
|
|
@ -389,10 +389,13 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
|
||||||
|
|
||||||
if (isBrick) {
|
if (isBrick) {
|
||||||
let indices = slices.map(s => s.index);
|
let indices = slices.map(s => s.index);
|
||||||
let first = indices[0];
|
let first = indices[1];
|
||||||
let last = indices.peek();
|
let last = indices[indices.length - 2];
|
||||||
let nu = [];
|
let nu = [];
|
||||||
for (let slice of slices) {
|
for (let slice of slices) {
|
||||||
|
if (slice.index < first || slice.index > last) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let nuSlice = slice.clone();
|
let nuSlice = slice.clone();
|
||||||
nuSlice.z -= slice.height / 2;
|
nuSlice.z -= slice.height / 2;
|
||||||
if (slice.index === first) {
|
if (slice.index === first) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue