diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-02-13 14:46:15 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2014-02-13 14:52:22 +0400 |
commit | 51efa8a1f53f230b72210289483dae66f01de51a (patch) | |
tree | a4c478dee85563290c2677cb86c9a12e8878c003 /source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.h | |
parent | 5fdf6169a3ed281c6655fdd1c14ad57fcdb972b9 (diff) |
Fix T38529, Blur node size 0 doesn't work.
The blur operations were clamping the filter size to 1, which prevents
no-op blur nodes. Further any value < 1 would also be ignored and in
many combinations the filter scale setting ("Size") would only work in
integer steps.
Now most blur settings will work with smooth Size value scaling as well,
meaning you can choose a reasonably large filter size (e.g. 10) and then
use the Size factor to scale the actual blur radius smoothly.
Note that non-integer filter sizes also depend on the filter type
selected in the Blur node, e.g. "Flat" filtering will still ignore
smooth filter sizes. Gaussian filters work best for this purpose.
Diffstat (limited to 'source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.h b/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.h index cb8b2e048ce..36b1201c9d7 100644 --- a/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.h +++ b/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.h @@ -32,7 +32,7 @@ private: float *m_distbuf_inv; bool m_do_subtract; int m_falloff; - int m_rad; + int m_filtersize; void updateGauss(); public: GaussianAlphaYBlurOperation(); |