[Bf-blender-cvs] [963aa7e] master: Cycles: Fix uninitialized variable from the previous commit
Sergey Sharybin
noreply at git.blender.org
Mon Oct 24 12:54:45 CEST 2016
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)
{
More information about the Bf-blender-cvs
mailing list