From a8f15e174a3759726639ccd9d1142f3937a40429 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 14 Jul 2025 19:01:01 -0400 Subject: [PATCH] fix webpack-zip, fix setAxisIndex when relative --- package.json | 2 +- src/kiri/mode/cam/slice.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8afafa40..5c57e7b2 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,7 @@ "webpack-ext": "npm run webpack-three && npm run webpack-zip", "webpack-src": "node bin/esbuild.config.mjs", "webpack-three": "npx webpack --config bin/webpack-three-esm.js", - "webpack-zip": "npx webpack --config bin/webpack-three-esm.js" + "webpack-zip": "npx webpack --config bin/webpack-jszip-esm.js" }, "main": "app-el.js", "build": { diff --git a/src/kiri/mode/cam/slice.js b/src/kiri/mode/cam/slice.js index b117d74a..0ae3ba8c 100644 --- a/src/kiri/mode/cam/slice.js +++ b/src/kiri/mode/cam/slice.js @@ -222,7 +222,7 @@ export async function cam_slice(settings, widget, onupdate, ondone) { } function setAxisIndex(degrees = 0, absolute = true) { - axisIndex = absolute ? degrees : axisIndex + degrees; + axisIndex = absolute ? degrees : (axisIndex || 0) + degrees; axisRotation = (Math.PI / 180) * axisIndex; widget.setAxisIndex(isIndexed ? -axisIndex : 0); return isIndexed ? -axisIndex : 0;