add z index hints to svg output

This commit is contained in:
Stewart Allen 2020-10-10 10:45:58 -04:00
commit f9336c7afd
2 changed files with 8 additions and 4 deletions

View file

@ -1361,6 +1361,9 @@
let color = ((rgb.r * 0xff) << 16) |
((rgb.g * 0xff) << 8) |
((rgb.b * 0xff) << 0);
if (opt.flat) {
poly = poly.clone().setZ(0);
}
if (opt.aslines) {
emits.poly(poly, opt.color || color, false, true);
} else {