2.5 Material:
[blender-staging.git] / source / blender / editors / interface / interface_icons.c
index 0c97c1fd008fb8668e00aa4d2aac628e02bb1066..1b23967a32dce48486f04949f544302fb537cb3a 100644 (file)
@@ -813,7 +813,7 @@ static void icon_set_image(ID *id, DrawInfo *di, PreviewImage* prv_img, int mipl
                } 
                else if (GS(id->name) == ID_MA) {
                        Material* mat = (Material*)id;
-                       if (mat->mode & MA_HALO) {
+                       if (mat->material_type == MA_TYPE_HALO) {
                                set_alpha( (char*) ri.rect, ri.pr_rectx, ri.pr_recty, 255);
                        }
                }