Commit: 963aa7e270816c1654ed668ee0dd370e9598f86a
Author: Sergey Sharybin
Date:   Mon Oct 24 12:54:24 2016 +0200
Branches: master
https://developer.blender.org/rB963aa7e270816c1654ed668ee0dd370e9598f86a

Cycles: Fix uninitialized variable from the previous commit

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

M       intern/cycles/bvh/bvh_build.cpp

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

diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index 190f57b..14f66ac 100644
--- a/intern/cycles/bvh/bvh_build.cpp
+++ b/intern/cycles/bvh/bvh_build.cpp
@@ -588,7 +588,7 @@ BVHNode* BVHBuild::build_node(const BVHRange& range,
        float unalignedSplitSAH = FLT_MAX;
        /* float unalignedLeafSAH = FLT_MAX; */
        Transform aligned_space;
-       bool do_unalinged_split;
+       bool do_unalinged_split = false;
        if(params.use_unaligned_nodes &&
           splitSAH > params.unaligned_split_threshold*leafSAH)
        {

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

Reply via email to