From 935e4eca989a044b9ffda2c7d3b723c53802256c Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Wed, 13 Sep 2017 13:56:19 +0200 Subject: [PATCH] Fix error in slices to gcode --- src/sliceActions/slicesToGCode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sliceActions/slicesToGCode.js b/src/sliceActions/slicesToGCode.js index 96e1db3..a3dda02 100644 --- a/src/sliceActions/slicesToGCode.js +++ b/src/sliceActions/slicesToGCode.js @@ -50,9 +50,10 @@ export default function slicesToGCode(slices, settings) { for (let i = 0; i < slice.parts.length; i ++) { const part = slice.parts[i]; - const outline = part.shell[0]; if (part.closed) { + const outline = part.shell[0]; + for (let i = 0; i < part.shell.length; i ++) { const shell = part.shell[i]; const isOuterShell = i === 0;