change default tool change methods for fdm
This commit is contained in:
parent
484d417058
commit
a7363732ac
43 changed files with 150 additions and 270 deletions
|
|
@ -890,7 +890,7 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
|
|||
}
|
||||
nu.push(nuSlice);
|
||||
let ti = 0;
|
||||
for (let top of slice.tops) {
|
||||
for (let top of slice.tops || []) {
|
||||
let nuTop = nuSlice.tops[ti++];
|
||||
nuTop.shells = [];
|
||||
top.shells = top.shells.filter((s,i) => {
|
||||
|
|
@ -907,7 +907,7 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
|
|||
cap.z += (slice.height * 0.75);
|
||||
cap.height = (slice.height / 2);
|
||||
nu.push(cap);
|
||||
cap.tops.forEach((top, i) => {
|
||||
cap.tops?.forEach((top, i) => {
|
||||
top.shells = nuSlice.tops[i].shells.clone();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue