Skip to content

Commit bb3a879

Browse files
committed
fix for 0.11
1 parent 112927a commit bb3a879

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

crates/bevy_pbr/src/wireframe.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::{Material, MaterialPipeline, MaterialPipelineKey, MaterialPlugin};
2-
use bevy_app::Plugin;
2+
use bevy_app::{Plugin, Update};
33
use bevy_asset::{load_internal_asset, Assets, Handle, HandleUntyped};
44
use bevy_ecs::prelude::*;
5-
use bevy_reflect::{std_traits::ReflectDefault, Reflect, TypeUuid};
5+
use bevy_reflect::{std_traits::ReflectDefault, Reflect, TypePath, TypeUuid};
66
use bevy_render::{
77
extract_resource::ExtractResource,
88
mesh::{Mesh, MeshVertexBufferLayout},
@@ -31,10 +31,11 @@ impl Plugin for WireframePlugin {
3131
app.register_type::<Wireframe>()
3232
.register_type::<WireframeConfig>()
3333
.init_resource::<WireframeConfig>()
34-
.add_plugin(MaterialPlugin::<WireframeMaterial>::default())
35-
.add_system(apply_global)
36-
.add_system(apply_material);
34+
.add_plugins(MaterialPlugin::<WireframeMaterial>::default())
35+
.add_systems(Update, apply_global)
36+
.add_systems(Update, apply_material);
3737
}
38+
}
3839

3940
/// Toggles wireframe rendering for any entity it is attached to.
4041
///
@@ -104,7 +105,7 @@ fn apply_global(
104105
}
105106
}
106107

107-
#[derive(Default, AsBindGroup, TypeUuid, Debug, Clone)]
108+
#[derive(Default, AsBindGroup, TypeUuid, TypePath, Debug, Clone)]
108109
#[uuid = "9e694f70-9963-4418-8bc1-3474c66b13b8"]
109110
struct WireframeMaterial {}
110111

0 commit comments

Comments
 (0)