Fixing SViewFrustum::recalculateBoundingBox once more.

Sorry, missed some points in last fix.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5775 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2019-02-25 14:44:36 +00:00
parent ba391682b0
commit db89bbc2ce
1 changed files with 4 additions and 0 deletions

View File

@ -263,9 +263,13 @@ namespace scene
inline void SViewFrustum::recalculateBoundingBox()
{
boundingBox.reset(getNearLeftUp());
boundingBox.addInternalPoint(getNearRightUp());
boundingBox.addInternalPoint(getNearLeftDown());
boundingBox.addInternalPoint(getNearRightDown());
boundingBox.addInternalPoint(getFarRightUp());
boundingBox.addInternalPoint(getFarLeftDown());
boundingBox.addInternalPoint(getFarRightDown());
boundingBox.addInternalPoint(getFarLeftUp());
// Also recalculate the bounding sphere when the bbox changes
recalculateBoundingSphere();