fix clamp min/max swap

This commit is contained in:
Stewart Allen 2025-12-14 00:56:38 -05:00
commit 14a80b7377

View file

@ -489,7 +489,7 @@ function omitMatching(target, matches) {
return target; return target;
} }
function clampZ(poly, min, max) { function clampZ(poly, max, min) {
for (let p of poly.points) { for (let p of poly.points) {
if (p.z < min) p.z = min; if (p.z < min) p.z = min;
else if (p.z > max) p.z = max; else if (p.z > max) p.z = max;