Add constructor to BoundingBox for single point empty box construction

This commit is contained in:
Wojtek Figat
2021-03-18 21:50:05 +01:00
parent 544a11562c
commit 8ef8b89fd5
25 changed files with 39 additions and 29 deletions

View File

@@ -306,7 +306,7 @@ void ParticleEffect::UpdateBounds()
// Empty bounds if there is no particle system to play or it has been never played
if (bounds == BoundingBox::Empty)
{
bounds = BoundingBox(_transform.Translation, _transform.Translation);
bounds = BoundingBox(_transform.Translation);
}
_box = bounds;