always start first layer on Z0.2

This commit is contained in:
casperlamboo 2017-05-19 11:43:47 +02:00 committed by Simon Voordouw
parent ca7c02c0d7
commit 04a66da688

View File

@ -77,7 +77,7 @@ export default class {
travelSpeed
} = this.settings.config;
const z = (layer + 1) * layerHeight;
const z = layer * layerHeight + 0.2;
const speed = travelSpeed * 60;
this._addGCode({
@ -111,7 +111,7 @@ export default class {
} = profile;
speed *= 60;
const z = (layer + 1) * layerHeight;
const z = layer * layerHeight + 0.2;
const lineLength = this._nozzlePosition.distanceTo(newNozzlePosition);