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:
parent
3aaf746675
commit
ac364e9e28
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user