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:
authorLukas Tönne <lukas.toenne@gmail.com>2014-09-21 20:11:32 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2014-09-21 20:12:15 +0400
commit217095f622282d5ec9ded524ddd7f24c68ed11f5 (patch)
tree014e36ef78216cbb47102298052ac8e5e1abaaa6
parent1ce09ff411ed431b32c16e3b5e1cad8f4b021ade (diff)
Fix T41754, sunbeams node should return the unmodified source value at
the source pixel.
-rw-r--r--source/blender/compositor/operations/COM_SunBeamsOperation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_SunBeamsOperation.cpp b/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
index 9a34dccacb1..5caaff7d975 100644
--- a/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
+++ b/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
@@ -139,6 +139,11 @@ struct BufferLineAccumulator {
float v, dv;
float falloff_factor;
+ if ((int)pt_ofs[0] == 0 && (int)pt_ofs[1] == 0) {
+ copy_v4_v4(output, input->getBuffer() + COM_NUMBER_OF_CHANNELS * ((int)source[0] + input->getWidth() * (int)source[1]));
+ return;
+ }
+
/* initialise the iteration variables */
float *buffer = init_buffer_iterator(input, source, pt_ofs, dist_min, dist_max, x, y, num, v, dv, falloff_factor);