From 33872b3cbe73b5e8d5a78cd12396af75f9b51471 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sun, 28 Apr 2013 22:40:00 -0400 Subject: [PATCH] Until Xcode behaves, the rest get the goodies. --- src/Model.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Model.cpp b/src/Model.cpp index f7a7a2e55e..4232b20f0c 100644 --- a/src/Model.cpp +++ b/src/Model.cpp @@ -760,12 +760,16 @@ void Model::SetSecondsIntoAnimation( float fSeconds ) bool Model::MaterialsNeedNormals() const { +#ifdef MACOSX for (msMaterial const &m : m_Materials) { if( m.NeedsNormals() ) return true; } return false; +#else + return std::any_of(m_Materials.begin(), m_Materials.end(), [](msMaterial const &m) { return m.NeedsNormals(); }); +#endif } // lua start