Hmm: hard time with std::any_of in Xcode.

The other commit I was worried about worked fine though.

Go figure.
This commit is contained in:
Jason Felds
2013-04-28 17:19:26 -04:00
parent 4d01ff674d
commit 83dee17d2a
+6 -2
View File
@@ -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