diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-10-24 13:54:24 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-10-24 13:54:24 +0300 |
commit | 963aa7e270816c1654ed668ee0dd370e9598f86a (patch) | |
tree | a576fadc4578691e5125464c54705be9664f100a /intern/cycles/bvh | |
parent | 80a6e5beb5be532916513025303025f961028c8d (diff) |
Cycles: Fix uninitialized variable from the previous commit
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index 190f57ba455..14f66aca70f 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) { |