Commit: e10ec6ee9ad5b9a88fb4a20a913f92fd2d01bdab
Author: Sergey Sharybin
Date: Wed Apr 6 10:51:04 2016 +0200
Branches: master
https://developer.blender.org/rBe10ec6ee9ad5b9a88fb4a20a913f92fd2d01bdab
Cycles: Avoid possibly uninitialized variable
===================================================================
M intern/cycles/bvh/bvh_split.h
===================================================================
diff --git a/intern/cycles/bvh/bvh_split.h b/intern/cycles/bvh/bvh_split.h
index 948aaa2..aea8b25 100644
--- a/intern/cycles/bvh/bvh_split.h
+++ b/intern/cycles/bvh/bvh_split.h
@@ -61,7 +61,11 @@ public:
int dim;
float pos;
- BVHSpatialSplit() : sah(FLT_MAX), dim(0), pos(0.0f) {}
+ BVHSpatialSplit() : sah(FLT_MAX),
+ dim(0),
+ pos(0.0f),
+ storage_(NULL),
+ references_(NULL) {}
BVHSpatialSplit(const BVHBuild& builder,
BVHSpatialStorage *storage,
const BVHRange& range,
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs