[Bf-blender-cvs] [7f4f588] blender-tiles: Fix for sunbeams operation

Jeroen Bakker noreply at git.blender.org
Mon Sep 22 21:20:32 CEST 2014


Commit: 7f4f58856569d870a6d0ff338dbd1957d08762d8
Author: Jeroen Bakker
Date:   Mon Sep 22 21:20:03 2014 +0200
Branches: blender-tiles
https://developer.blender.org/rB7f4f58856569d870a6d0ff338dbd1957d08762d8

Fix for sunbeams operation

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

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 f032f17..91b6e9c 100644
--- a/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
+++ b/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
@@ -140,7 +140,7 @@ struct BufferLineAccumulator {
 		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]));
+			copy_v4_v4(output, input->getBuffer() + COM_NUM_CHANNELS_COLOR * ((int)source[0] + input->getWidth() * (int)source[1]));
 			return;
 		}




More information about the Bf-blender-cvs mailing list