Skip to content

Add Copy trait to Pickable component#23330

Merged
mockersf merged 2 commits intobevyengine:mainfrom
Rabbival:patch-2
Mar 15, 2026
Merged

Add Copy trait to Pickable component#23330
mockersf merged 2 commits intobevyengine:mainfrom
Rabbival:patch-2

Conversation

@Rabbival
Copy link
Copy Markdown
Contributor

It not deriving Copy makes config structs with it also non-Copy It has two simple flags, there's no reason for it not to be

Objective

Make Pickable Copy so that config structs that have it as a field could also be Copy

Solution

Have it derive Copy

Testing

No need, it doesn't break anything

It not deriving Copy makes config structs with it also non-Copy
It has two simple flags, there's no reason for it not to be
@github-actions
Copy link
Copy Markdown
Contributor

Welcome, new contributor!

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

@hukasu hukasu added C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it A-Picking Pointing at and selecting objects of all sorts D-Trivial Nice and easy! A great choice to get started with Bevy labels Mar 12, 2026
@mockersf mockersf added this pull request to the merge queue Mar 15, 2026
Merged via the queue into bevyengine:main with commit 1b7f9e7 Mar 15, 2026
46 checks passed
splo pushed a commit to splo/bevy that referenced this pull request Mar 31, 2026
It not deriving Copy makes config structs with it also non-Copy It has
two simple flags, there's no reason for it not to be

# Objective

Make Pickable Copy so that config structs that have it as a field could
also be Copy

## Solution

Have it derive Copy

## Testing

No need, it doesn't break anything
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