[Bf-blender-cvs] [618b3480c8] master: Cycles: Cleanup, remove duplicated code

Sergey Sharybin noreply at git.blender.org
Thu Jan 12 18:27:16 CET 2017


Commit: 618b3480c84500bc3a6bda2320c206000a80556e
Author: Sergey Sharybin
Date:   Thu Jan 12 13:31:35 2017 +0100
Branches: master
https://developer.blender.org/rB618b3480c84500bc3a6bda2320c206000a80556e

Cycles: Cleanup, remove duplicated code

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

M	intern/cycles/render/buffers.cpp

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

diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp
index cb20e81170..5030de6917 100644
--- a/intern/cycles/render/buffers.cpp
+++ b/intern/cycles/render/buffers.cpp
@@ -185,13 +185,9 @@ bool RenderBuffers::get_pass_rect(PassType type, float exposure, int sample, int
 				}
 			}
 #ifdef WITH_CYCLES_DEBUG
-			else if(type == PASS_BVH_TRAVERSAL_STEPS) {
-				for(int i = 0; i < size; i++, in += pass_stride, pixels++) {
-					float f = *in;
-					pixels[0] = f*scale;
-				}
-			}
-			else if(type == PASS_RAY_BOUNCES) {
+			else if(type == PASS_BVH_TRAVERSAL_STEPS ||
+			        type == PASS_RAY_BOUNCES)
+			{
 				for(int i = 0; i < size; i++, in += pass_stride, pixels++) {
 					float f = *in;
 					pixels[0] = f*scale;




More information about the Bf-blender-cvs mailing list