From fe1c4ecd890b3affde13a8e59d507377060266fc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 4 Feb 2009 06:41:48 +0000 Subject: [PATCH] Relative option for the blur node only applied when the UI updated. This meant that changing the image size later on would still use the old size. Set the relative blur size when executing the node too. --- source/blender/nodes/intern/CMP_nodes/CMP_blur.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_blur.c b/source/blender/nodes/intern/CMP_nodes/CMP_blur.c index e7e799b6e76..f9be9533658 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_blur.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_blur.c @@ -567,6 +567,11 @@ static void node_composit_exec_blur(void *data, bNode *node, bNodeStack **in, bN if(out[0]->hasoutput==0) return; + if(nbd->relative) { + nbd->sizex= (int)(nbd->percentx*nbd->image_in_width); + nbd->sizey= (int)(nbd->percenty*nbd->image_in_height); + } + if (((NodeBlurData *)node->storage)->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 */