From 6bfe9c8890ff9f7a49b89c1c230ef85bf10097c5 Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 20 Feb 2013 16:37:22 +0100 Subject: [PATCH] Fixed AxisAlignedBox::Transform missing return Former-commit-id: 13888840999937528a7f4b7c23869eee929853a3 --- include/Nazara/Math/AxisAlignedBox.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Nazara/Math/AxisAlignedBox.inl b/include/Nazara/Math/AxisAlignedBox.inl index f471a1ff4..2d965e3e4 100644 --- a/include/Nazara/Math/AxisAlignedBox.inl +++ b/include/Nazara/Math/AxisAlignedBox.inl @@ -450,7 +450,7 @@ template NzAxisAlignedBox& NzAxisAlignedBox::Transform(const NzMatrix4& 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 center = matrix.Transform(cube.GetCenter(), (applyTranslation) ? F(1.0) : F(0.0)); // Valeur multipliant la translation NzVector3 halfSize = cube.GetSize() * F(0.5);