add finish shell speed override

This commit is contained in:
Stewart Allen 2017-12-06 21:15:37 -05:00
commit 76eeb43b5c
3 changed files with 9 additions and 6 deletions

View file

@ -332,16 +332,16 @@ var gs_kiri_print = exports;
first = true,
settings = this.settings,
shellMult = extrude || settings.process.outputShellMult,
shellSpeed = settings.process.outputShellSpeedMult || 1;
shellSpeed = settings.process.outputFinishrate || 0;
poly.forEachPoint(function(point) {
if (first) {
if (onfirst) onfirst(point);
// move from startPoint to point
addOutput(output, point, 0, 1);
addOutput(output, point, 0, 0);
first = false;
} else {
addOutput(output, point, shellMult, poly.depth == 0 ? shellSpeed : 1);
addOutput(output, point, shellMult, poly.depth == 0 ? shellSpeed : 0);
}
}, true, closest.index);