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:
authorCampbell Barton <ideasman42@gmail.com>2009-02-04 09:41:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-02-04 09:41:48 +0300
commitfe1c4ecd890b3affde13a8e59d507377060266fc (patch)
treed08c2d248e257cfc80b0401f28bdc84f75214cce /source/blender/nodes
parent08b1d587382a072f1da317c3f3c8ac6b50db78e9 (diff)
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.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_blur.c5
1 files changed, 5 insertions, 0 deletions
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 */