Skip to content

Commit

Permalink
fix cam y origin offset calc
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartoallen committed Sep 12, 2024
1 parent 6f9532d commit 718fb26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/kiri/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function platformUpdateOrigin(update_bounds = true) {
// CNC origin offsets
if (MODE === MODES.CAM) {
origin.x += process.camOriginOffX;
origin.y += process.camOriginOffY;
origin.y -= process.camOriginOffY;
origin.z += process.camOriginOffZ;
if (isIndexed) {
origin.y = 0;
Expand All @@ -105,7 +105,6 @@ function platformUpdateOrigin(update_bounds = true) {
origin.x -= process.ctOriginOffX;
origin.y += process.ctOriginOffY;
}

space.platform.setRulers(ruler, ruler, 1 / api.view.unit_scale(), 'X', isBelt ? 'Z' : 'Y');

let { x, y, z } = origin;
Expand Down

0 comments on commit 718fb26

Please sign in to comment.