Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-02-14 12:12:45 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-02-14 12:12:45 +0300
commit1c870f46e79c6378488bd84ed9ffbb40affae464 (patch)
tree602b7b04cd5313194f2e9266442e8dd61bbee057 /source/blender/compositor/operations/COM_MapUVOperation.cpp
parentde9ec80e644bb86a3ebb258db9135c3ee32bdcac (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_MapUVOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_MapUVOperation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_MapUVOperation.cpp b/source/blender/compositor/operations/COM_MapUVOperation.cpp
index d091675286d..0112f4bbf21 100644
--- a/source/blender/compositor/operations/COM_MapUVOperation.cpp
+++ b/source/blender/compositor/operations/COM_MapUVOperation.cpp
@@ -63,7 +63,7 @@ void MapUVOperation::executePixelSampled(float output[4], float x, float y, Pixe
float du = len_v2(deriv[0]);
float dv = len_v2(deriv[1]);
float factor = 1.0f - threshold * (du / m_inputColorProgram->getWidth() + dv / m_inputColorProgram->getHeight());
- if (factor < 0.f) alpha = 0.f;
+ if (factor < 0.0f) alpha = 0.0f;
else alpha *= factor;
/* "premul" */