forked from StrafesNET/strafe-client
fix is_empty_volume test
This commit is contained in:
parent
327ba10fb4
commit
f280b65fc9
@ -969,7 +969,7 @@ fn is_empty_volume(normals:Vec<Vector3<Fixed<3,96>>>)->bool{
|
||||
if k!=i&&k!=j{
|
||||
let d=n.dot(normals[k]);
|
||||
if let Some(comp)=&d_comp{
|
||||
if comp.is_negative()&&d.is_negative()||comp.is_positive()&&d.is_positive(){
|
||||
if comp.is_negative()^d.is_negative(){
|
||||
return true;
|
||||
}
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user