Register Wireframe type (#6152)

# 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.
This commit is contained in:
Sludge 2022-10-03 16:37:03 +00:00
parent 3aaf746675
commit ac364e9e28

View File

@ -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());