Skip to content

Commit

Permalink
scene example: remove unnecessary reflect(FromWorld) (bevyengine#11938)
Browse files Browse the repository at this point in the history
# Objective

- `#[reflect(FromWorld)]` was added to `ComponentB` somewhere between
`v0.12.1` and `v0.13.0`, but it is unnecessary

## Solution

- remove the unnecessary `FromWorld`
  • Loading branch information
awwsmm authored Feb 18, 2024
1 parent eef7dbe commit 961d49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/scene/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct ComponentA {
// trait comes into play. `FromWorld` gives you access to your App's current ECS `Resources`
// when you construct your component.
#[derive(Component, Reflect)]
#[reflect(Component, FromWorld)]
#[reflect(Component)]
struct ComponentB {
pub value: String,
#[reflect(skip_serializing)]
Expand Down

0 comments on commit 961d49f

Please sign in to comment.