mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
2b35dbabfd
# Objective An entity spawned with `MaterialMesh2dBundle<M>` cannot be saved and spawned using `DynamicScene` because the `Mesh2dHandle` component does not `impl Reflect`. ## Solution Add `#[derive(Reflect)]` and `#[reflect(Component)]` to `Mesh2dHandle`, and call `register_type` in `SpritePlugin`. Also add `#[derive(Debug)]` since I'm touching the `derive`s anyway. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |