diff options
-rw-r--r-- | intern/cycles/blender/blender_session.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/intern/cycles/blender/blender_session.cpp b/intern/cycles/blender/blender_session.cpp index 21166b2f155..f37e7d17559 100644 --- a/intern/cycles/blender/blender_session.cpp +++ b/intern/cycles/blender/blender_session.cpp @@ -305,12 +305,14 @@ static PassType get_pass_type(BL::RenderPass& b_pass) #ifdef WITH_CYCLES_DEBUG case BL::RenderPass::type_DEBUG: { - if(b_pass.debug_type() == BL::RenderPass::debug_type_BVH_TRAVERSAL_STEPS) - return PASS_BVH_TRAVERSAL_STEPS; - if(b_pass.debug_type() == BL::RenderPass::debug_type_BVH_TRAVERSED_INSTANCES) - return PASS_BVH_TRAVERSED_INSTANCES; - if(b_pass.debug_type() == BL::RenderPass::debug_type_RAY_BOUNCES) - return PASS_RAY_BOUNCES; + switch(b_pass.debug_type()) { + case BL::RenderPass::debug_type_BVH_TRAVERSAL_STEPS: + return PASS_BVH_TRAVERSAL_STEPS; + case BL::RenderPass::debug_type_BVH_TRAVERSED_INSTANCES: + return PASS_BVH_TRAVERSED_INSTANCES; + case BL::RenderPass::debug_type_RAY_BOUNCES: + return PASS_RAY_BOUNCES; + } break; } #endif |