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:
Diffstat (limited to 'source/blender/compositor/operations/COM_DistanceMatteOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_DistanceMatteOperation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_DistanceMatteOperation.cpp b/source/blender/compositor/operations/COM_DistanceMatteOperation.cpp
index bef470ca9de..ab4df7bf1ac 100644
--- a/source/blender/compositor/operations/COM_DistanceMatteOperation.cpp
+++ b/source/blender/compositor/operations/COM_DistanceMatteOperation.cpp
@@ -63,15 +63,15 @@ void DistanceMatteOperation::executePixel(float* outputValue, float x, float y,
*/
/*make 100% transparent */
- if(distance < tolerence) {
+ if (distance < tolerence) {
outputValue[0]=0.f;
}
/*in the falloff region, make partially transparent */
- else if(distance < falloff+tolerence){
+ else if (distance < falloff+tolerence) {
distance=distance-tolerence;
alpha=distance/falloff;
/*only change if more transparent than before */
- if(alpha < inImage[3]) {
+ if (alpha < inImage[3]) {
outputValue[0]=alpha;
}
else { /* leave as before */