Skip to content

Commit a61bf35

Browse files
committed
Derive FromReflect for Aabb (#7396)
# Objective Add a `FromReflect` derive to the `Aabb` type, like all other math types, so we can reflect `Vec<Aabb>`. ## Solution Just add it :) --- ## Changelog ### Added - Implemented `FromReflect` for `Aabb`.
1 parent c673343 commit a61bf35

File tree

1 file changed

+2
-2
lines changed
  • crates/bevy_render/src/primitives

1 file changed

+2
-2
lines changed

crates/bevy_render/src/primitives/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use bevy_ecs::{component::Component, prelude::Entity, reflect::ReflectComponent};
22
use bevy_math::{Mat4, Vec3, Vec3A, Vec4, Vec4Swizzles};
3-
use bevy_reflect::Reflect;
3+
use bevy_reflect::{FromReflect, Reflect};
44
use bevy_utils::HashMap;
55

66
/// An Axis-Aligned Bounding Box
7-
#[derive(Component, Clone, Debug, Default, Reflect)]
7+
#[derive(Component, Clone, Debug, Default, Reflect, FromReflect)]
88
#[reflect(Component)]
99
pub struct Aabb {
1010
pub center: Vec3A,

0 commit comments

Comments
 (0)