a speedup
authorVitaly Ovchinnikov <vitaly.ovchinnikov@gmail.com>
Mon, 14 Dec 2015 02:37:27 +0000 (15:37 +1300)
committerVitaly Ovchinnikov <vitaly.ovchinnikov@gmail.com>
Mon, 14 Dec 2015 02:37:27 +0000 (15:37 +1300)
include/assimp/vector3.inl

index b83367d..2e30e80 100644 (file)
@@ -104,7 +104,7 @@ template <typename TReal>
 AI_FORCE_INLINE aiVector3t<TReal>& aiVector3t<TReal>::NormalizeSafe() {
     TReal len = Length();
     if (len > static_cast<TReal>(0))
-        *this /= Length();
+        *this /= len;
     return *this;
 }
 // ------------------------------------------------------------------------------------------------