-->Fix for bake with faces that have alpha
authorGeoffrey Bantle <hairbat@yahoo.com>
Fri, 21 May 2010 09:58:26 +0000 (09:58 +0000)
committerGeoffrey Bantle <hairbat@yahoo.com>
Fri, 21 May 2010 09:58:26 +0000 (09:58 +0000)
Baking for faces with alpha only worked if 'clear' was
turned off in bake options.

source/blender/render/intern/source/rendercore.c

index 047bbd7..760ce56 100644 (file)
@@ -2634,7 +2634,7 @@ int RE_bake_shade_all_selected(Render *re, int type, Object *actob, short *do_up
        get_next_bake_face(NULL);
        
        /* do we need a mask? */
-       if (re->r.bake_filter && (re->r.bake_flag & R_BAKE_CLEAR)==0)
+       if (re->r.bake_filter)
                usemask = 1;
        
        /* baker uses this flag to detect if image was initialized */