diff --git a/src/bvh.rs b/src/bvh.rs index ab73f65..ee73355 100644 --- a/src/bvh.rs +++ b/src/bvh.rs @@ -19,11 +19,18 @@ impl Default for RecursiveContent{ Self::Branch(Vec::new()) } } -#[derive(Default)] pub struct BvhNode{ content:RecursiveContent,T>, aabb:Aabb, } +impl Default for BvhNode{ + fn default()->Self{ + Self{ + content:Default::default(), + aabb:Aabb::default(), + } + } +} pub struct BvhWeightNode{ content:RecursiveContent,T>, weight:W,