diff --git a/src/Model.cpp b/src/Model.cpp index 64862a2d45..f7a7a2e55e 100644 --- a/src/Model.cpp +++ b/src/Model.cpp @@ -760,8 +760,12 @@ void Model::SetSecondsIntoAnimation( float fSeconds ) bool Model::MaterialsNeedNormals() const { - return std::any_of(m_Materials.begin(), m_Materials.end(), - [&](msMaterial const m) { return m.NeedsNormals(); }); + for (msMaterial const &m : m_Materials) + { + if( m.NeedsNormals() ) + return true; + } + return false; } // lua start