[Bf-blender-cvs] [217095f] master: Fix T41754, sunbeams node should return the unmodified source value at the source pixel.

Lukas Tönne noreply at git.blender.org
Sun Sep 21 18:12:22 CEST 2014


Commit: 217095f622282d5ec9ded524ddd7f24c68ed11f5
Author: Lukas Tönne
Date:   Sun Sep 21 18:11:32 2014 +0200
Branches: master
https://developer.blender.org/rB217095f622282d5ec9ded524ddd7f24c68ed11f5

Fix T41754, sunbeams node should return the unmodified source value at
the source pixel.

===================================================================

M	source/blender/compositor/operations/COM_SunBeamsOperation.cpp

===================================================================

diff --git a/source/blender/compositor/operations/COM_SunBeamsOperation.cpp b/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
index 9a34dcc..5caaff7 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);




More information about the Bf-blender-cvs mailing list