fix clamp min/max swap
This commit is contained in:
parent
161cd06daa
commit
14a80b7377
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue