diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-19 01:02:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-19 01:02:59 +0400 |
commit | c9233bfd828f6e37e1c6e492e4e835dae01288d7 (patch) | |
tree | 747bd94255dd33602b233564b54c2d3aa8760f40 /source/blender/compositor | |
parent | acecae86dc8d4e59d373c73fb6abbdc276a98896 (diff) |
Code cleanup: style
Diffstat (limited to 'source/blender/compositor')
-rw-r--r-- | source/blender/compositor/operations/COM_BlurBaseOperation.cpp | 4 | ||||
-rw-r--r-- | source/blender/compositor/operations/COM_GaussianBokehBlurOperation.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_BlurBaseOperation.cpp b/source/blender/compositor/operations/COM_BlurBaseOperation.cpp index d13fea921be..0f7afe484b1 100644 --- a/source/blender/compositor/operations/COM_BlurBaseOperation.cpp +++ b/source/blender/compositor/operations/COM_BlurBaseOperation.cpp @@ -78,7 +78,7 @@ float *BlurBaseOperation::make_gausstab(float rad, int size) gausstab = (float *)MEM_mallocN(sizeof(float) * n, __func__); sum = 0.0f; - float fac = (rad > 0.0f ? 1.0f/rad : 0.0f); + float fac = (rad > 0.0f ? 1.0f / rad : 0.0f); for (i = -size; i <= size; i++) { val = RE_filter_value(this->m_data->filtertype, (float)i * fac); sum += val; @@ -103,7 +103,7 @@ float *BlurBaseOperation::make_dist_fac_inverse(float rad, int size, int falloff dist_fac_invert = (float *)MEM_mallocN(sizeof(float) * n, __func__); - float fac = (rad > 0.0f ? 1.0f/rad : 0.0f); + float fac = (rad > 0.0f ? 1.0f / rad : 0.0f); for (i = -size; i <= size; i++) { val = 1.0f - fabsf((float)i * fac); diff --git a/source/blender/compositor/operations/COM_GaussianBokehBlurOperation.cpp b/source/blender/compositor/operations/COM_GaussianBokehBlurOperation.cpp index 44752d4e12e..1d02f5389b1 100644 --- a/source/blender/compositor/operations/COM_GaussianBokehBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_GaussianBokehBlurOperation.cpp @@ -86,8 +86,8 @@ void GaussianBokehBlurOperation::updateGauss() ddgauss = (float *)MEM_mallocN(sizeof(float) * n, __func__); dgauss = ddgauss; float sum = 0.0f; - float facx = (radxf > 0.0f ? 1.0f/radxf : 0.0f); - float facy = (radyf > 0.0f ? 1.0f/radyf : 0.0f); + float facx = (radxf > 0.0f ? 1.0f / radxf : 0.0f); + float facy = (radyf > 0.0f ? 1.0f / radyf : 0.0f); for (j = -this->m_rady; j <= this->m_rady; j++) { for (i = -this->m_radx; i <= this->m_radx; i++, dgauss++) { float fj = (float)j * facy; |