Fix operator== with infinite BoundingVolume

Former-commit-id: 47cee9fb8d8d2b8188d3918527aeebab56b03992
This commit is contained in:
Gawaboumga
2015-08-21 11:52:05 +02:00
parent c2161f2a8b
commit f0660d5da8
2 changed files with 107 additions and 1 deletions

View File

@@ -202,7 +202,10 @@ template<typename T>
bool NzBoundingVolume<T>::operator==(const NzBoundingVolume& volume) const
{
if (extend == volume.extend)
return obb == volume.obb;
if (extend == nzExtend_Finite)
return obb == volume.obb;
else
return true;
else
return false;
}