From 6e55ca7a79cf727dfd63802fb332006db45243f1 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Tue, 19 Dec 2017 13:42:48 +0100 Subject: [PATCH] slice async --- 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 74e2793..4530e1f 100644 --- a/src/interface/utils.js +++ b/src/interface/utils.js @@ -126,7 +126,7 @@ export async function slice(name, mesh, settings, printers, quality, material, u const centerY = dimensions.y / 2; const matrix = new Matrix4().makeTranslation(centerY, 0, centerX).multiply(mesh.matrix); - const { gcode } = 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, slicing: progress.done / progress.total