From 7108343cdc79ac376b218fe225a16be1426e3b41 Mon Sep 17 00:00:00 2001 From: zuiyu1998 <1542844298@qq.com> Date: Wed, 17 Apr 2024 09:21:49 +0800 Subject: [PATCH] Add deref trait for Mesh2dHandle --- crates/bevy_sprite/src/mesh2d/mesh.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_sprite/src/mesh2d/mesh.rs b/crates/bevy_sprite/src/mesh2d/mesh.rs index 2e61072fa882f0..96f8c212a9b6a5 100644 --- a/crates/bevy_sprite/src/mesh2d/mesh.rs +++ b/crates/bevy_sprite/src/mesh2d/mesh.rs @@ -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`] 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);