Make AlwaysVisible objects always visible in shader mode. Fixes #908.

This was SVN commit r11454.
This commit is contained in:
Ykkrosh
2012-04-08 16:36:23 +00:00
parent b7888aea52
commit f3617822e0
7 changed files with 31 additions and 14 deletions
+4
View File
@@ -589,6 +589,10 @@ void CModel::SetTransform(const CMatrix3D& transform)
void CModel::AddFlagsRec(int flags)
{
m_Flags |= flags;
if (flags & MODELFLAG_IGNORE_LOS)
m_Material.AddShaderDefine("IGNORE_LOS", "1");
for (size_t i = 0; i < m_Props.size(); ++i)
if (m_Props[i].m_Model->ToCModel())
m_Props[i].m_Model->ToCModel()->AddFlagsRec(flags);