Fix: T50271: Bilateral/Directional blur's iterations is zero by default
authorbrunoT <drehuwann@gmail.com>
Thu, 27 Apr 2017 12:54:06 +0000 (08:54 -0400)
committerAaron Carlisle <carlisle.b3d@gmail.com>
Thu, 27 Apr 2017 13:00:11 +0000 (09:00 -0400)
Differential Revision: https://developer.blender.org/D2632

source/blender/nodes/composite/nodes/node_composite_bilateralblur.c
source/blender/nodes/composite/nodes/node_composite_directionalblur.c

index 2ad097013ef3dc735c81167482046fd85288db53..fde7dccb4ac92456975b26e0a93acb16d3b1ebbb 100644 (file)
@@ -47,6 +47,7 @@ static void node_composit_init_bilateralblur(bNodeTree *UNUSED(ntree), bNode *no
 {
        NodeBilateralBlurData *nbbd = MEM_callocN(sizeof(NodeBilateralBlurData), "node bilateral blur data");
        node->storage = nbbd;
+       nbbd->iter = 1;
        nbbd->sigma_color = 0.3;
        nbbd->sigma_space = 5.0;
 }
index 6eb27a228ad33724b58ccce8c22087bc2eeca9cb..336eb3409ff76c3a5682c42148ed4cdf0cb4061a 100644 (file)
@@ -46,6 +46,7 @@ static void node_composit_init_dblur(bNodeTree *UNUSED(ntree), bNode *node)
 {
        NodeDBlurData *ndbd = MEM_callocN(sizeof(NodeDBlurData), "node dblur data");
        node->storage = ndbd;
+       ndbd->iter = 1;
        ndbd->center_x = 0.5;
        ndbd->center_y = 0.5;
 }