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:
+6
-2
@@ -760,8 +760,12 @@ void Model::SetSecondsIntoAnimation( float fSeconds )
|
|||||||
|
|
||||||
bool Model::MaterialsNeedNormals() const
|
bool Model::MaterialsNeedNormals() const
|
||||||
{
|
{
|
||||||
return std::any_of(m_Materials.begin(), m_Materials.end(),
|
for (msMaterial const &m : m_Materials)
|
||||||
[&](msMaterial const m) { return m.NeedsNormals(); });
|
{
|
||||||
|
if( m.NeedsNormals() )
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// lua start
|
// lua start
|
||||||
|
|||||||
Reference in New Issue
Block a user