Merging r39634 through r39716 from trunk into soc-2011-tomato
[blender-staging.git] / source / gameengine / Converter / BL_BlenderDataConversion.cpp
index c8d4e76639220c796f114b4c2b34c94257ca4a80..47e2a0275504fd27250da3842fe966dbf1b3ef03 100644 (file)
@@ -350,6 +350,8 @@ bool ConvertMaterial(
 
                // use lighting?
                material->ras_mode |= ( mat->mode & MA_SHLESS )?0:USE_LIGHT;
+               // cast shadows?
+               material->ras_mode |= ( mat->mode & MA_SHADBUF )?CAST_SHADOW:0;
                MTex *mttmp = 0;
                numchan = getNumTexChannels(mat);
                int valid_index = 0;