fix for anchor lifting some parts

This commit is contained in:
stewart allen 2021-04-25 14:33:41 -04:00
commit a109ebca29
2 changed files with 4 additions and 3 deletions

View file

@ -479,7 +479,8 @@
if (isBelt) {
// find belt min y
let minby = Infinity;
for (let layer of output) {
let normout = output.filter(l => !l.anchor);
for (let layer of normout) {
for (let rec of layer) {
let point = rec.point;
minby = Math.min(minby, -point.y + point.z * bfactor);
@ -502,7 +503,6 @@
let thresh = firstLayerHeight * 0.25;
let seqn = 0;
// iterate over layers, find extrusion on belt and
// apply corrections and add brim when specified
for (let layer of output) {

View file

@ -910,7 +910,8 @@ th, tr, td, label {
#code-preview-textarea {
width: 40em;
height: 12em;
font-size: 10px;
font-size: smaller;
font-family: Courier,monospace;
}
.mod-end {
height: 10px;