Blender Internal: Add material property "Cast" which can disable both ray and buffer...
[blender.git] / source / blender / editors / render / render_preview.c
index 6eb4c5901cd0fcba4a924295c817010c9ad3f90f..0379212354ce387333ef0d1b8eb4c5d2ffc3a92f 100644 (file)
@@ -350,7 +350,7 @@ static Scene *preview_prepare_scene(Scene *scene, ID *id, int id_type, ShaderPre
                                                if (base->object->id.name[2] == 'c') {
                                                        Material *shadmat = give_current_material(base->object, base->object->actcol);
                                                        if (shadmat) {
-                                                               if (mat->mode & MA_SHADBUF) shadmat->septex = 0;
+                                                               if (mat->mode2 & MA_CASTSHADOW) shadmat->septex = 0;
                                                                else shadmat->septex |= 1;
                                                        }
                                                }