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