Cycles: Avoid possibly uninitialized variable
This commit is contained in:
@@ -61,7 +61,11 @@ public:
|
|||||||
int dim;
|
int dim;
|
||||||
float pos;
|
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,
|
BVHSpatialSplit(const BVHBuild& builder,
|
||||||
BVHSpatialStorage *storage,
|
BVHSpatialStorage *storage,
|
||||||
const BVHRange& range,
|
const BVHRange& range,
|
||||||
|
Reference in New Issue
Block a user