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_ChromaMatteOperation.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_ChromaMatteOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_ChromaMatteOperation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_ChromaMatteOperation.cpp b/source/blender/compositor/operations/COM_ChromaMatteOperation.cpp
index 9a20ca412e0..bc6389c5bbd 100644
--- a/source/blender/compositor/operations/COM_ChromaMatteOperation.cpp
+++ b/source/blender/compositor/operations/COM_ChromaMatteOperation.cpp
@@ -84,16 +84,16 @@ void ChromaMatteOperation::executePixelSampled(float output[4], float x, float y
/*if within the acceptance angle */
/* if kfg is <0 then the pixel is outside of the key color */
- kfg = x_angle - (fabsf(z_angle) / tanf(acceptance / 2.f));
+ kfg = x_angle - (fabsf(z_angle) / tanf(acceptance / 2.0f));
- if (kfg > 0.f) { /* found a pixel that is within key color */
+ if (kfg > 0.0f) { /* found a pixel that is within key color */
alpha = 1.0f - (kfg / gain);
beta = atan2(z_angle, x_angle);
/* if beta is within the cutoff angle */
- if (fabsf(beta) < (cutoff / 2.f)) {
- alpha = 0.f;
+ if (fabsf(beta) < (cutoff / 2.0f)) {
+ alpha = 0.0f;
}
/* don't make something that was more transparent less transparent */