fix starting position for origin bottom
This commit is contained in:
parent
9d8a52e546
commit
ad1dc154ce
1 changed files with 3 additions and 2 deletions
|
|
@ -215,7 +215,7 @@ CAM.export = function(print, online) {
|
|||
if (points === 0) {
|
||||
pos.x = pos.y = pos.z = 0;
|
||||
points++;
|
||||
if (spro.camFirstZMax) {
|
||||
if (spro.camFirstZMax || newpos.z >= pos.z) {
|
||||
moveTo({
|
||||
// speed: Infinity,
|
||||
tool: out.tool,
|
||||
|
|
@ -230,6 +230,7 @@ CAM.export = function(print, online) {
|
|||
}, {
|
||||
dx: 1, dy: 1, dz: 0, time: 0
|
||||
});
|
||||
points--;
|
||||
} else if (newpos.z <= pos.z) {
|
||||
moveTo({
|
||||
// speed: Infinity,
|
||||
|
|
@ -245,8 +246,8 @@ CAM.export = function(print, online) {
|
|||
}, {
|
||||
dx: 0, dy: 0, dz: 1, time: 0
|
||||
});
|
||||
points--;
|
||||
}
|
||||
points--;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue