do not add brims to anchors

This commit is contained in:
Stewart Allen 2021-01-29 08:03:13 -05:00
commit f8ecd9f198
2 changed files with 8 additions and 0 deletions

View file

@ -386,6 +386,8 @@
}
layerout.z = z + slice.height / 2;
layerout.height = layerout.height || slice.height;
// mark layer as anchor if slice is belt and flag set
layerout.anchor = slice.belt && slice.belt.anchor;
// detect extruder change and print purge block
if (!lastOut || lastOut.extruder !== slice.extruder) {
printPoint = purge(slice.extruder, track, layerout, printPoint, slice.z);
@ -493,6 +495,10 @@
if (firstLayerBrimTrig > 0 && mins > firstLayerBrimTrig) {
continue;
}
// do not add brims to anchor layers
if (layer.anchor) {
continue;
}
// add brim, if specified
if (first && firstLayerBrim) {
let {emit, tool } = first;