Skip to content

Commit 8d93f10

Browse files
authored
fix: NoAutomaticBatching Copy and Clone (bevyengine#21813)
# Objective it;s a unit struct. should support Copy and Clone ## Solution - Describe the solution used to achieve the objective above. ## Testing - Did you test these changes? If so, how? - Are there any parts that need more testing? - How can other people (reviewers) test your changes? Is there anything specific they need to know? - If relevant, what platforms did you test these changes on, and are there any important ones you can't test? --- ## Showcase > This section is optional. If this PR does not include a visual change or does not add a new feature, you can delete this section. - Help others understand the result of this PR by showcasing your awesome work! - If this PR adds a new feature or public API, consider adding a brief pseudo-code snippet of it in action - If this PR includes a visual change, consider adding a screenshot, GIF, or video - If you want, you could even include a before/after comparison! - If the Migration Guide adequately covers the changes, you can delete this section While a showcase should aim to be brief and digestible, you can use a toggleable section to save space on longer showcases: <details> <summary>Click to view showcase</summary> ```rust println!("My super cool code."); ``` </details>
1 parent 2930d9f commit 8d93f10

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_render/src/batching

1 file changed

+1
-1
lines changed

crates/bevy_render/src/batching/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub mod gpu_preprocessing;
2020
pub mod no_gpu_preprocessing;
2121

2222
/// Add this component to mesh entities to disable automatic batching
23-
#[derive(Component, Default)]
23+
#[derive(Component, Default, Clone, Copy)]
2424
pub struct NoAutomaticBatching;
2525

2626
/// Data necessary to be equal for two draw commands to be mergeable

0 commit comments

Comments
 (0)