Until Xcode behaves, the rest get the goodies.
This commit is contained in:
@@ -760,12 +760,16 @@ void Model::SetSecondsIntoAnimation( float fSeconds )
|
|||||||
|
|
||||||
bool Model::MaterialsNeedNormals() const
|
bool Model::MaterialsNeedNormals() const
|
||||||
{
|
{
|
||||||
|
#ifdef MACOSX
|
||||||
for (msMaterial const &m : m_Materials)
|
for (msMaterial const &m : m_Materials)
|
||||||
{
|
{
|
||||||
if( m.NeedsNormals() )
|
if( m.NeedsNormals() )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
#else
|
||||||
|
return std::any_of(m_Materials.begin(), m_Materials.end(), [](msMaterial const &m) { return m.NeedsNormals(); });
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// lua start
|
// lua start
|
||||||
|
|||||||
Reference in New Issue
Block a user