svn merge ^/trunk/blender -r42009:42053
[blender.git] / source / blender / editors / object / object_bake.c
index 68a58ae9223ecf65213b18681f5b2ef724e2b781..0d3d732b598e357f5c821488ce1b7f1a03152483 100644 (file)
@@ -1085,7 +1085,7 @@ static void clear_images(MTFace *mtface, int totface)
                if((ima->id.flag&LIB_DOIT)==0) {
                        ImBuf *ibuf= BKE_image_get_ibuf(ima, NULL);
 
                if((ima->id.flag&LIB_DOIT)==0) {
                        ImBuf *ibuf= BKE_image_get_ibuf(ima, NULL);
 
-                       IMB_rectfill(ibuf, (ibuf->depth == 32) ? vec_alpha : vec_solid);
+                       IMB_rectfill(ibuf, (ibuf->planes == R_IMF_PLANES_RGBA) ? vec_alpha : vec_solid);
                        ima->id.flag|= LIB_DOIT;
                }
        }
                        ima->id.flag|= LIB_DOIT;
                }
        }