fix access order of ops in clampZ
This commit is contained in:
parent
8ac7ea712e
commit
4171e695cd
1 changed files with 2 additions and 2 deletions
|
|
@ -500,8 +500,8 @@ function clampZ(poly, max, min) {
|
|||
else if (p.z > max) p.z = max;
|
||||
}
|
||||
if (poly.inner) {
|
||||
for (let poly of poly.inner) {
|
||||
clampZ(poly, min, max);
|
||||
for (let p of poly.inner) {
|
||||
clampZ(p, min, max);
|
||||
}
|
||||
}
|
||||
return poly;
|
||||
|
|
|
|||
Loading…
Reference in a new issue