Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2008-01-22 09:27:27 +0300
committerMatt Ebb <matt@mke3.net>2008-01-22 09:27:27 +0300
commitd11cd3108b25ef0e205259539359da8759ef2819 (patch)
tree61d48355f15b84e6d3070d126e8f10fa4b24fa89 /source/blender/nodes
parentb778daed815e2dfcc803c97a5a40d41e6a4b4e16 (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')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_bilateralblur.c3
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;
}