2.5 Material:
[blender-staging.git] / source / blender / editors / preview / previewrender.c
index 407674163a6b9c4dbc60bcd6d653f5ed35f4699f..1d5d809a9ee5c7a82523663d7c79c7d4dfac25b0 100644 (file)
@@ -349,7 +349,7 @@ static Scene *preview_prepare_scene(Scene *scene, int id_type, ShaderPreview *sp
 
                                
                                if(sp->pr_method==PR_ICON_RENDER) {
-                                       if (mat->mode & MA_HALO) {
+                                       if (mat->material_type == MA_TYPE_HALO) {
                                                sce->lay= 1<<MA_FLAT;
                                        } 
                                        else {