compensate for cam origin offset on export / import
This commit is contained in:
parent
47ea617185
commit
06459f18b8
2 changed files with 8 additions and 8 deletions
|
|
@ -546,11 +546,12 @@ const dispatch = {
|
|||
|
||||
parse(args, send) {
|
||||
const { settings, code, type } = args;
|
||||
const { process } = settings;
|
||||
const origin = settings.origin;
|
||||
const offset = {
|
||||
x: origin.x,
|
||||
y: -origin.y,
|
||||
z: origin.z
|
||||
x: origin.x - (process.camOriginOffX ?? 0),
|
||||
y: -origin.y - (process.camOriginOffY ?? 0),
|
||||
z: origin.z - (process.camOriginOffZ ?? 0)
|
||||
};
|
||||
const device = settings.device;
|
||||
const print = current.print = newPrint(settings, Object.values(wcache));
|
||||
|
|
|
|||
Loading…
Reference in a new issue