This commit is contained in:
casperlamboo 2017-06-22 10:20:44 +02:00 committed by Simon Voordouw
parent 55b63ac8ad
commit 3e52a11a9b

View File

@ -14,9 +14,9 @@ export default function addBrim(slices, settings) {
let { brimOffset } = settings.config;
brimOffset /= PRECISION;
const [fistLayer] = slices;
const [firstLayer] = slices;
fistLayer.brim = fistLayer.parts.reduce((brim, { shape }) => {
firstLayer.brim = firstLayer.parts.reduce((brim, { shape }) => {
brim.join(shape.offset(brimOffset, {
...offsetOptions,
endType: shape.closed ? 'etClosedPolygon' : 'etOpenRound'