fix missing inner polygons on conversion of slice to print

This commit is contained in:
Stewart Allen 2018-01-04 10:32:46 -05:00
commit ac96381dfa

View file

@ -1212,7 +1212,7 @@ var gs_kiri_cam = exports;
if (!top.poly) return;
if (!top.traces) return;
var polys = [];
top.traces.forEach(function (poly) {
POLY.flatten(top.traces, []).forEach(function (poly) {
if (depthFirst) poly = poly.clone(true);
poly.layer = depthData.layer;
polys.push(poly);