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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-01-12 15:31:35 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-01-20 13:26:20 +0300
commit3cb13988991cd1de4a19c21a5b5497b6996970f1 (patch)
treeb599678c6181163a2c9042fc907c0838f580337b /intern/cycles
parent0fdb16ec4d63d09486a56287c5ae52b663662088 (diff)
Cycles: Cleanup, remove duplicated code
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/render/buffers.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp
index cb20e811708..5030de69174 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;