Skip to content

Commit 3fea726

Browse files
authored
Added deref trait for Mesh2dHandle (#13002)
# Added deref trait for Mesh2dHandle - Fixes #13001 ". ## Solution - Added Derive Deref for Mesh2dHandle.
1 parent ef7bafa commit 3fea726

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_sprite/src/mesh2d

1 file changed

+1
-1
lines changed

crates/bevy_sprite/src/mesh2d/mesh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use crate::Material2dBindGroupId;
3939
/// Component for rendering with meshes in the 2d pipeline, usually with a [2d material](crate::Material2d) such as [`ColorMaterial`](crate::ColorMaterial).
4040
///
4141
/// It wraps a [`Handle<Mesh>`] to differentiate from the 3d pipelines which use the handles directly as components
42-
#[derive(Default, Clone, Component, Debug, Reflect, PartialEq, Eq)]
42+
#[derive(Default, Clone, Component, Debug, Reflect, PartialEq, Eq, Deref, DerefMut)]
4343
#[reflect(Default, Component)]
4444
pub struct Mesh2dHandle(pub Handle<Mesh>);
4545

0 commit comments

Comments
 (0)