Committing patch #25675 "Make "Cast Buffer Shadows" option work in viewport and BGE...
[blender.git] / source / gameengine / Ketsji / KX_BlenderMaterial.cpp
index 9ff32ba57c53cbb8e4f6a9cc4d3e0b5abec983cb..4226896aec00a0aad3c6130eadb7e43517c0fdb9 100644 (file)
@@ -85,6 +85,7 @@ void KX_BlenderMaterial::Initialize(
        m_flag |= (mMaterial->IdMode>=ONETEX)? RAS_MULTITEX: 0;
        m_flag |= ((mMaterial->ras_mode & USE_LIGHT)!=0)? RAS_MULTILIGHT: 0;
        m_flag |= (mMaterial->glslmat)? RAS_BLENDERGLSL: 0;
+       m_flag |= ((mMaterial->ras_mode & CAST_SHADOW)!=0)? RAS_CASTSHADOW: 0;
 
        // figure max
        int enabled = mMaterial->num_enabled;