[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34825] trunk/blender/source/blender/nodes /intern/CMP_nodes/CMP_blur.c: Patch 26068
Ton Roosendaal
ton at blender.org
Sun Feb 13 15:55:40 CET 2011
Revision: 34825
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34825
Author: ton
Date: 2011-02-13 14:55:39 +0000 (Sun, 13 Feb 2011)
Log Message:
-----------
Patch 26068
Fast-gauss node didn't respond to socket-input "Size" factor.
Thanks Philipp Oeser for the fix!
Modified Paths:
--------------
trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_blur.c
Modified: trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_blur.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_blur.c 2011-02-13 14:16:36 UTC (rev 34824)
+++ trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_blur.c 2011-02-13 14:55:39 UTC (rev 34825)
@@ -598,9 +598,8 @@
}
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;
More information about the Bf-blender-cvs
mailing list