Skip to content
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

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

Peepo-Juice
Copy link
Contributor

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.


Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@Peepo-Juice Peepo-Juice changed the title synced up the Derive of DragEntry to match the other events Sync up the Derive of DragEntry to match the other events Mar 10, 2025
@@ -278,7 +278,7 @@ pub struct DragDrop {
}

/// Dragging state.
#[derive(Debug, Clone)]
#[derive(Clone, PartialEq, Debug, Reflect)]
pub struct DragEntry {
Copy link
Contributor

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

Copy link
Contributor Author

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 :)

Copy link
Contributor

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

@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Needs-Review Needs reviewer attention (from anyone!) to move forward A-Picking Pointing at and selecting objects of all sorts labels Mar 10, 2025
@Olle-Lukowski Olle-Lukowski added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Mar 11, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 11, 2025
Merged via the queue into bevyengine:main with commit 949d781 Mar 11, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Picking Pointing at and selecting objects of all sorts C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants