fix transfer of height information from slices

This commit is contained in:
Stewart Allen 2018-03-07 08:44:16 -05:00
commit fb950ec894
2 changed files with 3 additions and 2 deletions

View file

@ -340,6 +340,7 @@ var gs_kiri_fdm = exports;
if (layerout.length && minidx !== lastIndex) { if (layerout.length && minidx !== lastIndex) {
layerout.last().retract = true; layerout.last().retract = true;
} }
layerout.height = layerout.height || closest.slice.height;
slices[minidx] = null; slices[minidx] = null;
closest.offset.z = zoff; closest.offset.z = zoff;
// output seek to start point between mesh slices if previous data // output seek to start point between mesh slices if previous data
@ -354,7 +355,7 @@ var gs_kiri_fdm = exports;
} }
layerout.layer = layer; layerout.layer = layer;
layerout.height = layer === 0 ? firstLayerHeight : process.sliceHeight; // layerout.height = layerout.height || (layer === 0 ? firstLayerHeight : process.sliceHeight);
if (layerout.length) output.append(layerout); if (layerout.length) output.append(layerout);
layer++; layer++;
update(layer / maxLayers); update(layer / maxLayers);

View file

@ -1,7 +1,7 @@
var exports = { var exports = {
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved", COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.", LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
VERSION:"1.1.8a" VERSION:"1.1.8b"
}; };
if (!module) var module = {}; if (!module) var module = {};
module.exports = exports; module.exports = exports;