-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync up the Derive of DragEntry to match the other events #18220
Sync up the Derive of DragEntry to match the other events #18220
Conversation
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
@@ -278,7 +278,7 @@ pub struct DragDrop { | |||
} | |||
|
|||
/// Dragging state. | |||
#[derive(Debug, Clone)] | |||
#[derive(Clone, PartialEq, Debug, Reflect)] | |||
pub struct DragEntry { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm I don't believe DragEntry
is a pointer event. Doesn't mean we don't want these impls for it but I am curious what you're doing that wanted them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm working with bevy_mod_scripting so I need things to be Reflect so I can send it over to the Lua side :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok so you're not actually using the PartialEq, just the reflect
Objective
Add
#[derive(Clone, PartialEq, Debug, Reflect)]
to DragEntry so it matches the other picking events.Solution
Copy/paste (RIP Larry Tesler)
Testing
Just ran cargo check. I don't believe this should break anything because I did not remove any derives it had before.