fix trace op.thru for offset none

This commit is contained in:
Stewart Allen 2025-12-15 13:54:07 -05:00
commit 645d73a53f

View file

@ -233,7 +233,7 @@ class OpArea extends CamOp {
if (tr_type === 'none') { if (tr_type === 'none') {
// todo: move this out of the zs loop and only setZ when needed // todo: move this out of the zs loop and only setZ when needed
area = area.clone(true); area = area.clone(true);
outs = [ zs.length > 1 ? area.setZ(z) : clampZ(area, zTop, zBottom) ]; outs = [ zs.length > 1 || op.thru ? area.setZ(z) : clampZ(area, zTop, zBottom) ];
} else { } else {
// drape is legacy outline // drape is legacy outline
let offit = op.drape ? shadow : [ area ]; let offit = op.drape ? shadow : [ area ];