Fixed AxisAlignedBox::Transform missing return

Former-commit-id: 13888840999937528a7f4b7c23869eee929853a3
This commit is contained in:
Lynix 2013-02-20 16:37:22 +01:00
parent add363a290
commit 6bfe9c8890
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ template<typename T>
NzAxisAlignedBox<T>& NzAxisAlignedBox<T>::Transform(const NzMatrix4<T>& matrix, bool applyTranslation)
{
if (extend != nzExtend_Finite)
return; //
return *this; // Toute transformation d'une AABox autre que finie résultera en la même AABox
NzVector3<T> center = matrix.Transform(cube.GetCenter(), (applyTranslation) ? F(1.0) : F(0.0)); // Valeur multipliant la translation
NzVector3<T> halfSize = cube.GetSize() * F(0.5);