From 6e2b0b4fd149c2b20940f381ec10bb426a37d5df Mon Sep 17 00:00:00 2001 From: Vitaly Ovchinnikov Date: Mon, 14 Dec 2015 15:37:27 +1300 Subject: [PATCH] a speedup --- include/assimp/vector3.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/assimp/vector3.inl b/include/assimp/vector3.inl index b83367d7b..2e30e8061 100644 --- a/include/assimp/vector3.inl +++ b/include/assimp/vector3.inl @@ -104,7 +104,7 @@ template AI_FORCE_INLINE aiVector3t& aiVector3t::NormalizeSafe() { TReal len = Length(); if (len > static_cast(0)) - *this /= Length(); + *this /= len; return *this; } // ------------------------------------------------------------------------------------------------