fix z origin offsets in cam mode

This commit is contained in:
Stewart Allen 2024-12-04 12:49:51 -05:00
commit 5c1cddbb1c
2 changed files with 4 additions and 3 deletions

View file

@ -70,7 +70,8 @@ CAM.export = function(print, online) {
}, },
offset = { offset = {
x: -origin.x, x: -origin.x,
y: origin.y y: origin.y,
z: spro.camOriginTop ? origin.z - zmax : origin.z
}, },
scale = { scale = {
x: 1, x: 1,
@ -88,7 +89,7 @@ CAM.export = function(print, online) {
time_sec: 0, time_sec: 0,
time_ms: 0, time_ms: 0,
time: 0 time: 0
} };
function section(section) { function section(section) {
append(); append();

View file

@ -582,7 +582,7 @@ class Print {
scope.belt = belt; scope.belt = belt;
if (scope.debugE) { if (scope.debugE) {
console.log({ print_time: time.round(2) }); console.log({ bounds, print_time: time.round(2) });
} }
done({ output: scope.output }); done({ output: scope.output });