reduce memory footprint of sla mode

This commit is contained in:
Stewart Allen 2020-04-19 16:29:13 -04:00
commit 1589a63ec0
4 changed files with 37 additions and 21 deletions

View file

@ -32,7 +32,14 @@ let gs_kiri_export = exports;
case 'SLA': return exportPrintSLA(currentPrint);
}
} else {
API.function.print(exportPrint);
switch (API.mode.get()) {
case 'SLA':
API.function.slice(exportPrint);
break;
default:
API.function.print(exportPrint);
break;
}
}
}