From 83dee17d2a6620071a79a595245c8fb630594dee Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sun, 28 Apr 2013 17:19:26 -0400 Subject: [PATCH] Hmm: hard time with std::any_of in Xcode. The other commit I was worried about worked fine though. Go figure. --- src/Model.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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