Commit: a7c403635c01f1e918a04dcafb233c24c54e253d
Author: Sergey Sharybin
Date:   Wed Jul 6 11:28:16 2016 +0200
Branches: cycles_bvh
https://developer.blender.org/rBa7c403635c01f1e918a04dcafb233c24c54e253d

Cycles BVH: Remove debug-only code

That code would have created too much unaligned nodes.

Spotted by Brecht, thanks!

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

M       intern/cycles/bvh/bvh_build.cpp

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

diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index d774096..e9a9d7a 100644
--- a/intern/cycles/bvh/bvh_build.cpp
+++ b/intern/cycles/bvh/bvh_build.cpp
@@ -595,8 +595,6 @@ BVHNode* BVHBuild::build_node(const BVHRange& range,
                unalignedSplitSAH = params.sah_node_cost * 
unaligned_split.bounds.half_area() +
                                    params.sah_primitive_cost * 
unaligned_split.nodeSAH;
                /* TOOD(sergey): Check we can create leaf already. */
-
-               unalignedSplitSAH = splitSAH - 1.0f;
        }
 
        /* Do split. */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to