diff --git a/include/assimp/vector3.inl b/include/assimp/vector3.inl index 2765115a2..fda47d6a7 100644 --- a/include/assimp/vector3.inl +++ b/include/assimp/vector3.inl @@ -154,6 +154,9 @@ const aiVector3t& aiVector3t::operator *= (TReal f) { template AI_FORCE_INLINE const aiVector3t& aiVector3t::operator /= (TReal f) { + if ((T) f==0.0) { + return *this; + } const TReal invF = (TReal) 1.0 / f; x *= invF; y *= invF;