actually, this if is still marginally good to have
authorMorten Mikkelsen <mikkelsen7@gmail.com>
Mon, 22 Aug 2011 18:56:13 +0000 (18:56 +0000)
committerMorten Mikkelsen <mikkelsen7@gmail.com>
Mon, 22 Aug 2011 18:56:13 +0000 (18:56 +0000)
source/blender/imbuf/intern/filter.c

index 3f391b91c0fd47f40b8a0414752881f1430c3afb..7f1eef803186dc04bb83b4862a4cb97919c1240d 100644 (file)
@@ -397,10 +397,10 @@ void IMB_filter_extend(struct ImBuf *ibuf, char *mask, int filter)
                                        float acc[4]={0,0,0,0};
                                        k = 0;
 
-                                       /*if (check_pixel_assigned(srcbuf, srcmask, filter_make_index(x-1, y, width, height), depth, is_float) ||
+                                       if (check_pixel_assigned(srcbuf, srcmask, filter_make_index(x-1, y, width, height), depth, is_float) ||
                                                check_pixel_assigned(srcbuf, srcmask, filter_make_index(x+1, y, width, height), depth, is_float) ||
                                                check_pixel_assigned(srcbuf, srcmask, filter_make_index(x, y-1, width, height), depth, is_float) ||
-                                               check_pixel_assigned(srcbuf, srcmask, filter_make_index(x, y+1, width, height), depth, is_float))*/ {
+                                               check_pixel_assigned(srcbuf, srcmask, filter_make_index(x, y+1, width, height), depth, is_float)) {
                                                for(i= -n; i<=n; i++) {
                                                        for(j=-n; j<=n; j++) {
                                                                if(i != 0 || j != 0) {