diff --git a/source/blender/blenkernel/BKE_bvhutils.hh b/source/blender/blenkernel/BKE_bvhutils.hh index 076e28faefe..1c6c4757846 100644 --- a/source/blender/blenkernel/BKE_bvhutils.hh +++ b/source/blender/blenkernel/BKE_bvhutils.hh @@ -27,7 +27,7 @@ struct PointCloud; * Struct that stores basic information about a #BVHTree built from a mesh. */ struct BVHTreeFromMesh { - BVHTree *tree; + BVHTree *tree = nullptr; /** Default callbacks to BVH nearest and ray-cast. */ BVHTree_NearestPointCallback nearest_callback; @@ -39,10 +39,10 @@ struct BVHTreeFromMesh { blender::Span corner_verts; blender::Span corner_tris; - const MFace *face; + const MFace *face = nullptr; /* Private data */ - bool cached; + bool cached = false; }; enum BVHCacheType {