From 0852278ce76fe7412344eeb7e577d0dbdab0ff75 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 13 Feb 2011 14:55:39 +0000 Subject: Patch 26068 Fast-gauss node didn't respond to socket-input "Size" factor. Thanks Philipp Oeser for the fix! --- source/blender/nodes/intern/CMP_nodes/CMP_blur.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/nodes/intern/CMP_nodes') diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_blur.c b/source/blender/nodes/intern/CMP_nodes/CMP_blur.c index 75aca3e0428..238ac87d101 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_blur.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_blur.c @@ -598,9 +598,8 @@ static void node_composit_exec_blur(void *data, bNode *node, bNodeStack **in, bN } else if (nbd->filtertype == R_FILTER_FAST_GAUSS) { CompBuf *new, *img = in[0]->data; - /*from eeshlo's original patch, removed to fit in with the existing blur node */ - /*const float sx = in[1]->vec[0], sy = in[2]->vec[0];*/ - const float sx = ((float)nbd->sizex)/2.0f, sy = ((float)nbd->sizey)/2.0f; + // TODO: can this be mapped with reference, too? + const float sx = ((float)nbd->sizex*in[1]->vec[0])/2.0f, sy = ((float)nbd->sizey*in[1]->vec[0])/2.0f; int c; if ((img==NULL) || (out[0]->hasoutput==0)) return; -- cgit v1.2.3