diff --git a/code/SmoothingGroups.inl b/code/SmoothingGroups.inl index 4f072ad1a..42c500070 100644 --- a/code/SmoothingGroups.inl +++ b/code/SmoothingGroups.inl @@ -119,7 +119,7 @@ void ComputeNormalsWithSmoothingsGroups(MeshWithSmoothingGroups& sMesh) { vNormals += sMesh.mNormals[(*a)]; } - vNormals.Normalize(); + vNormals.NormalizeSafe(); // write back into all affected normals for (std::vector::const_iterator