Skip to content

Commit

Permalink
Derive Copy for Aabb (bevyengine#7401)
Browse files Browse the repository at this point in the history
# Objective

Derive `Copy` for `Aabb`

## Solution

Just do it :)

---

## Changelog

- The `Aabb` type now derives `Copy`.
  • Loading branch information
djeedai authored and ItsDoot committed Feb 1, 2023
1 parent 743a270 commit cf2e229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_render/src/primitives/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use bevy_math::{Mat4, Vec3, Vec3A, Vec4, Vec4Swizzles};
use bevy_reflect::{FromReflect, Reflect};
use bevy_utils::HashMap;

/// An Axis-Aligned Bounding Box
#[derive(Component, Clone, Debug, Default, Reflect, FromReflect)]
/// An axis-aligned bounding box.
#[derive(Component, Clone, Copy, Debug, Default, Reflect, FromReflect)]
#[reflect(Component)]
pub struct Aabb {
pub center: Vec3A,
Expand Down

0 comments on commit cf2e229

Please sign in to comment.