From 831398234281c06660c81bfeed80aee3a902f372 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 12 Feb 2018 23:58:12 +0100 Subject: [PATCH] slice in worker --- src/interface/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/utils.js b/src/interface/utils.js index 2543225..51a99b1 100644 --- a/src/interface/utils.js +++ b/src/interface/utils.js @@ -175,7 +175,7 @@ export async function slice(target, name, mesh, settings, updateProgress) { const centerY = dimensions.y / 2; const matrix = new THREE.Matrix4().makeTranslation(centerY, 0, centerX).multiply(mesh.matrix); - const { gcode } = await sliceGeometry(settings, mesh.geometry, mesh.material, matrix, true, false, ({ progress }) => { + const { gcode } = await sliceGeometry(settings, mesh.geometry, mesh.material, matrix, false, false, ({ progress }) => { updateProgress({ action: progress.action, percentage: (currentStep + progress.done / progress.total) / steps