[Bf-blender-cvs] [f55221e] blender-v2.78-release: Cycles: Fix uninitialized variable from the previous commit
Sergey Sharybin
noreply at git.blender.org
Mon Oct 24 12:55:10 CEST 2016
Commit: f55221e0a1704a7279200fe7c9b2d564de45edc1
Author: Sergey Sharybin
Date: Mon Oct 24 12:54:24 2016 +0200
Branches: blender-v2.78-release
https://developer.blender.org/rBf55221e0a1704a7279200fe7c9b2d564de45edc1
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