diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-14 12:12:45 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-14 12:12:45 +0300 |
commit | 1c870f46e79c6378488bd84ed9ffbb40affae464 (patch) | |
tree | 602b7b04cd5313194f2e9266442e8dd61bbee057 /source/blender/compositor/operations/COM_ColorMatteOperation.cpp | |
parent | de9ec80e644bb86a3ebb258db9135c3ee32bdcac (diff) |
Compositor: Cleanup, don't shortcut float values
Use 0.0f instead of 0.f and so on.
Diffstat (limited to 'source/blender/compositor/operations/COM_ColorMatteOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ColorMatteOperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_ColorMatteOperation.cpp b/source/blender/compositor/operations/COM_ColorMatteOperation.cpp index b928141f41d..c95811e5e11 100644 --- a/source/blender/compositor/operations/COM_ColorMatteOperation.cpp +++ b/source/blender/compositor/operations/COM_ColorMatteOperation.cpp @@ -72,7 +72,7 @@ void ColorMatteOperation::executePixelSampled(float output[4], float x, float y, /* multiply by 2 because it wraps on both sides of the hue, * otherwise 0.5 would key all hue's */ - /* hue */ ((h_wrap = 2.f * fabsf(inColor[0] - inKey[0])) < hue || (2.f - h_wrap) < hue) + /* hue */ ((h_wrap = 2.0f * fabsf(inColor[0] - inKey[0])) < hue || (2.0f - h_wrap) < hue) ) { output[0] = 0.0f; /* make transparent */ |