diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-17 17:44:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-17 17:44:15 +0400 |
commit | 979f6bab9c1aba27b8d018d1481987d841f68ee1 (patch) | |
tree | 162419d475bf68326b3b5e88b25f27057fee6831 /source/blender/compositor/operations/COM_MapValueOperation.cpp | |
parent | fe0d1a381003408dedcd3142a727c77806617150 (diff) |
style cleanup: braces, compositor
Diffstat (limited to 'source/blender/compositor/operations/COM_MapValueOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_MapValueOperation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_MapValueOperation.cpp b/source/blender/compositor/operations/COM_MapValueOperation.cpp index 33d38b8475d..5a7005af382 100644 --- a/source/blender/compositor/operations/COM_MapValueOperation.cpp +++ b/source/blender/compositor/operations/COM_MapValueOperation.cpp @@ -37,11 +37,11 @@ void MapValueOperation::executePixel(float* outputValue, float x, float y, Pixel inputOperation->read(src, x, y, sampler, inputBuffers); TexMapping *texmap= this->settings; float value = (src[0] + texmap->loc[0])*texmap->size[0]; - if(texmap->flag & TEXMAP_CLIP_MIN) - if(value<texmap->min[0]) + if (texmap->flag & TEXMAP_CLIP_MIN) + if (value<texmap->min[0]) value= texmap->min[0]; - if(texmap->flag & TEXMAP_CLIP_MAX) - if(value>texmap->max[0]) + if (texmap->flag & TEXMAP_CLIP_MAX) + if (value>texmap->max[0]) value= texmap->max[0]; outputValue[0] = value; |