From 88d16921055c536920a2036ee4fd073c9316e774 Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Thu, 31 Oct 2024 15:56:27 +0100 Subject: [PATCH] Derive same attributes as MainEntity for RenderEntity (#16191) Spotted while working on updating bevy_egui. Discord context: https://discordapp.com/channels/691052431525675048/1301212128115687454/1301469954465464320 --- crates/bevy_render/src/sync_world.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/sync_world.rs b/crates/bevy_render/src/sync_world.rs index eefe7753ff..6cee2885d0 100644 --- a/crates/bevy_render/src/sync_world.rs +++ b/crates/bevy_render/src/sync_world.rs @@ -125,7 +125,7 @@ pub struct SyncToRenderWorld; /// Component added on the main world entities that are synced to the Render World in order to keep track of the corresponding render world entity. /// /// Can also be used as a newtype wrapper for render world entities. -#[derive(Component, Deref, Clone, Debug, Copy)] +#[derive(Component, Deref, Copy, Clone, Debug, Eq, Hash, PartialEq)] pub struct RenderEntity(Entity); impl RenderEntity { #[inline]