diff --git a/src/nodes/spatial/mod.rs b/src/nodes/spatial/mod.rs index ec3752b0..4b3f4eb9 100644 --- a/src/nodes/spatial/mod.rs +++ b/src/nodes/spatial/mod.rs @@ -266,12 +266,11 @@ impl SpatialAspect for Spatial { let relative_spatial = relative_to.get_aspect::()?; let center = Spatial::space_to_space_matrix(Some(&this_spatial), Some(&relative_spatial)) .transform_point3([0.0; 3].into()); - let bounds = Bounds { - center, - dimensions: [0.0; 3].into(), - }; - bounds_grow_to_fit_box( - bounds, + let bounds = bounds_grow_to_fit_box( + Bounds { + center, + dimensions: [0.0; 3].into(), + }, this_spatial.get_bounding_box(), Some(Spatial::space_to_space_matrix( Some(&this_spatial),