diff options
author | Matt Ebb <matt@mke3.net> | 2008-01-22 09:27:27 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2008-01-22 09:27:27 +0300 |
commit | d11cd3108b25ef0e205259539359da8759ef2819 (patch) | |
tree | 61d48355f15b84e6d3070d126e8f10fa4b24fa89 /source/blender/nodes/intern/CMP_nodes | |
parent | b778daed815e2dfcc803c97a5a40d41e6a4b4e16 (diff) |
* Fix for bilateral blur node
The 'Determinator' input didn't work at all - there was some quite weird code in there. I think the patch review process could have been quite a bit better on this one.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_bilateralblur.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_bilateralblur.c b/source/blender/nodes/intern/CMP_nodes/CMP_bilateralblur.c index 81592becf4b..b954e876ea1 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_bilateralblur.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_bilateralblur.c @@ -107,9 +107,8 @@ static void node_composit_exec_bilateralblur(void *data, bNode *node, bNodeStack step= pix * imgx; if(refimg) { - refimg= img; if(refimg->x == imgx && refimg->y == imgy) { - if(refimg->type == CB_VEC2 || refimg->type == CB_VEC3) { + if(ELEM3(refimg->type, CB_VAL, CB_VEC2, CB_VEC3)) { refimg= typecheck_compbuf(in[1]->data, CB_RGBA); found_determinator= 1; } |