fix layer height when parsing some gcode
This commit is contained in:
parent
ee2ac403b2
commit
88f47ea65e
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ class Print {
|
|||
// the old sequence and start a new one
|
||||
if (newlayer || (autolayer && seq.Z != pos.Z)) {
|
||||
newlayer = false;
|
||||
let nh = (defh || pos.Z - seq.Z);
|
||||
let nh = (pos.Z - seq.Z || defh);
|
||||
seq = [];
|
||||
seq.height = height = nh;
|
||||
if (fdm) dz = -height / 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue