Skip to content

Commit

Permalink
Register Wireframe type (bevyengine#6152)
Browse files Browse the repository at this point in the history
# Objective

The `Wireframe` type implements `Reflect`, but is never registered, making its reflection inaccessible.

## Solution

Call `App::register_type::<Wireframe>()` in the `Plugin::build` implementation of `WireframePlugin`.

---

## Changelog

Fixed `Wireframe` type reflection not getting registered.
  • Loading branch information
SludgePhD authored and james7132 committed Oct 28, 2022
1 parent 02bb7de commit 39286fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_pbr/src/wireframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ impl Plugin for WireframePlugin {
Shader::from_wgsl
);

app.register_type::<WireframeConfig>()
app.register_type::<Wireframe>()
.register_type::<WireframeConfig>()
.init_resource::<WireframeConfig>()
.add_plugin(ExtractResourcePlugin::<WireframeConfig>::default());

Expand Down

0 comments on commit 39286fd

Please sign in to comment.