mark poly depth during fdm shelling

This commit is contained in:
Stewart Allen 2017-12-06 18:53:42 -05:00
commit a92bb122a9
3 changed files with 17 additions and 11 deletions

View file

@ -422,7 +422,9 @@ var gs_base_polygons = exports;
if (out) out.appendAll(polys);
if (collector) collector(polys, count);
if ((count === 0 || count > 1) && polys.length > 0) expand(polys, distance2 || distance, z, out, count > 0 ? count-1 : 0, distance2, collector);
if ((count === 0 || count > 1) && polys.length > 0) {
expand(polys, distance2 || distance, z, out, count > 0 ? count-1 : 0, distance2, collector);
}
return polys;
}