fixed a rendering bug with band in 3D

This commit is contained in:
Zeno Rogue 2020-12-27 17:15:05 +01:00
parent eb6d186f00
commit 85ab111abb
1 changed files with 4 additions and 2 deletions

View File

@ -179,8 +179,10 @@ bool hypot_zlev(ld zlev, ld& d, ld& df, ld& zf) {
if(d > 0)
d = hypot_auto(d, z);
else
d = -hypot_auto(d, z);
else {
d = -hypot_auto(-d, z);
zf = -zf;
}
return true;
}
}