svn merge -r 22628:22714 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / source / blender / editors / preview / previewrender.c
index 94db74c18d9d417ae10e357d0b5f00d276de1ee9..d17391811bbb2248786059b8243a18cc8fdcb79d 100644 (file)
@@ -307,6 +307,8 @@ static Scene *preview_prepare_scene(Scene *scene, ID *id, int id_type, ShaderPre
                                /* turn on raytracing if needed */
                                if(mat->mode_l & MA_RAYMIRROR)
                                        sce->r.mode |= R_RAYTRACE;
+                               if(mat->material_type == MA_TYPE_VOLUME)
+                                       sce->r.mode |= R_RAYTRACE;
                                if((mat->mode_l & MA_RAYTRANSP) && (mat->mode_l & MA_TRANSP))
                                        sce->r.mode |= R_RAYTRACE;
                                if(mat->sss_flag & MA_DIFF_SSS)