track xpos for belt widgets
This commit is contained in:
parent
9ce62bcac8
commit
d89674f1d5
2 changed files with 4 additions and 2 deletions
|
|
@ -301,6 +301,7 @@
|
|||
let offset = Object.clone(mesh.position || center);
|
||||
if (isBelt) {
|
||||
offset = center;
|
||||
offset.x = widget.rotinfo.xpos;
|
||||
offset.y = widget.rotinfo.dz;
|
||||
offset.z = widget.rotinfo.ypos;
|
||||
} else {
|
||||
|
|
@ -363,7 +364,6 @@
|
|||
}
|
||||
layerout.height = layerout.height || closest.slice.height;
|
||||
slices[minidx] = null;
|
||||
// if (!isBelt) closest.offset.z = zoff;
|
||||
// detect extruder change and print purge block
|
||||
if (!lastOut || lastOut.extruder !== closest.slice.extruder) {
|
||||
printPoint = purge(closest.slice.extruder, track, layerout, printPoint, closest.slice.z);
|
||||
|
|
|
|||
Loading…
Reference in a new issue