Skip to content

Commit

Permalink
Merge pull request #1 from zuiyu1998/mesh_2d__handle_deref
Browse files Browse the repository at this point in the history
Add deref trait for Mesh2dHandle
  • Loading branch information
zuiyu1998 authored Apr 17, 2024
2 parents cae07ef + 7108343 commit 13dffaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_sprite/src/mesh2d/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use crate::Material2dBindGroupId;
/// Component for rendering with meshes in the 2d pipeline, usually with a [2d material](crate::Material2d) such as [`ColorMaterial`](crate::ColorMaterial).
///
/// It wraps a [`Handle<Mesh>`] to differentiate from the 3d pipelines which use the handles directly as components
#[derive(Default, Clone, Component, Debug, Reflect, PartialEq, Eq)]
#[derive(Default, Clone, Component, Debug, Reflect, PartialEq, Eq, Deref)]
#[reflect(Default, Component)]
pub struct Mesh2dHandle(pub Handle<Mesh>);

Expand Down

0 comments on commit 13dffaf

Please sign in to comment.