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:
authorCampbell Barton <ideasman42@gmail.com>2016-03-05 01:13:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-03-05 01:13:16 +0300
commitfea07c1a63fdfe3bf25d77d862e83bdf024347b8 (patch)
treea859d2c511c53f5653a23d6992165aa6a5ddece7 /source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp
parentacebfbb6669b4f0c546068777c7f11146aad3def (diff)
Cleanup: unnecessary comma use
Also use SWAP macro
Diffstat (limited to 'source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp
index acd76fa79a8..e0e5e923654 100644
--- a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp
+++ b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp
@@ -149,9 +149,10 @@ void ScreenLensDistortionOperation::accumulate(MemoryBuffer *buffer,
distort_uv(uv, t, xy);
buffer->readBilinear(color, xy[0], xy[1]);
- sum[a] += (1.0f - tz) * color[a], sum[b] += tz * color[b];
- ++count[a];
- ++count[b];
+ sum[a] += (1.0f - tz) * color[a];
+ sum[b] += (tz ) * color[b];
+ count[a]++;
+ count[b]++;
}
}