slice async

This commit is contained in:
casperlamboo 2017-12-19 13:42:48 +01:00
parent a4d8e255cc
commit 6e55ca7a79

View File

@ -126,7 +126,7 @@ export async function slice(name, mesh, settings, printers, quality, material, u
const centerY = dimensions.y / 2; const centerY = dimensions.y / 2;
const matrix = new Matrix4().makeTranslation(centerY, 0, centerX).multiply(mesh.matrix); 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({ updateProgress({
action: progress.action, action: progress.action,
slicing: progress.done / progress.total slicing: progress.done / progress.total