Derive same attributes as MainEntity for RenderEntity (#16191)

Spotted while working on updating bevy_egui.

Discord context:
https://discordapp.com/channels/691052431525675048/1301212128115687454/1301469954465464320
This commit is contained in:
Thierry Berger 2024-10-31 15:56:27 +01:00 committed by François
parent f6a4167896
commit e0308ad920
No known key found for this signature in database

View File

@ -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]