fix shell output in prints

This commit is contained in:
Stewart Allen 2020-11-08 11:09:15 -05:00
commit 15ea39e849
3 changed files with 9 additions and 10 deletions

View file

@ -59,10 +59,10 @@
* return innermost traces under a given top. for FDM, this represents
* the outline shell that the fill touches. used by Print, Laser
*/
Top.prototype.innerTraces = function() {
let traces = this.traces,
Top.prototype.innerShells = function() {
let shells = this.shells,
array = [];
if (traces) traces.forEach(function(p) {
if (shells) shells.forEach(function(p) {
if (p.inner) array.appendAll(p.inner);
});
return array;