Skip to content

Commit 17f96e1

Browse files
lewiszlwItsDoot
authored andcommitted
Register Hash for glam types (bevyengine#6786)
# Objective - fixes bevyengine#6736 ## Solution - Register `Hash` on all of glam's reflected integer vector types.
1 parent e27304e commit 17f96e1

File tree

1 file changed

+6
-6
lines changed
  • crates/bevy_reflect/src/impls

1 file changed

+6
-6
lines changed

crates/bevy_reflect/src/impls/glam.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ use bevy_reflect_derive::{impl_from_reflect_value, impl_reflect_struct, impl_ref
66
use glam::*;
77

88
impl_reflect_struct!(
9-
#[reflect(Debug, PartialEq, Default)]
9+
#[reflect(Debug, Hash, PartialEq, Default)]
1010
struct IVec2 {
1111
x: i32,
1212
y: i32,
1313
}
1414
);
1515
impl_reflect_struct!(
16-
#[reflect(Debug, PartialEq, Default)]
16+
#[reflect(Debug, Hash, PartialEq, Default)]
1717
struct IVec3 {
1818
x: i32,
1919
y: i32,
2020
z: i32,
2121
}
2222
);
2323
impl_reflect_struct!(
24-
#[reflect(Debug, PartialEq, Default)]
24+
#[reflect(Debug, Hash, PartialEq, Default)]
2525
struct IVec4 {
2626
x: i32,
2727
y: i32,
@@ -31,22 +31,22 @@ impl_reflect_struct!(
3131
);
3232

3333
impl_reflect_struct!(
34-
#[reflect(Debug, PartialEq, Default)]
34+
#[reflect(Debug, Hash, PartialEq, Default)]
3535
struct UVec2 {
3636
x: u32,
3737
y: u32,
3838
}
3939
);
4040
impl_reflect_struct!(
41-
#[reflect(Debug, PartialEq, Default)]
41+
#[reflect(Debug, Hash, PartialEq, Default)]
4242
struct UVec3 {
4343
x: u32,
4444
y: u32,
4545
z: u32,
4646
}
4747
);
4848
impl_reflect_struct!(
49-
#[reflect(Debug, PartialEq, Default)]
49+
#[reflect(Debug, Hash, PartialEq, Default)]
5050
struct UVec4 {
5151
x: u32,
5252
y: u32,

0 commit comments

Comments
 (0)