Skip to content

Commit

Permalink
fix for 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Aug 14, 2023
1 parent 112927a commit bb3a879
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions crates/bevy_pbr/src/wireframe.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::{Material, MaterialPipeline, MaterialPipelineKey, MaterialPlugin};
use bevy_app::Plugin;
use bevy_app::{Plugin, Update};
use bevy_asset::{load_internal_asset, Assets, Handle, HandleUntyped};
use bevy_ecs::prelude::*;
use bevy_reflect::{std_traits::ReflectDefault, Reflect, TypeUuid};
use bevy_reflect::{std_traits::ReflectDefault, Reflect, TypePath, TypeUuid};
use bevy_render::{
extract_resource::ExtractResource,
mesh::{Mesh, MeshVertexBufferLayout},
Expand Down Expand Up @@ -31,10 +31,11 @@ impl Plugin for WireframePlugin {
app.register_type::<Wireframe>()
.register_type::<WireframeConfig>()
.init_resource::<WireframeConfig>()
.add_plugin(MaterialPlugin::<WireframeMaterial>::default())
.add_system(apply_global)
.add_system(apply_material);
.add_plugins(MaterialPlugin::<WireframeMaterial>::default())
.add_systems(Update, apply_global)
.add_systems(Update, apply_material);
}
}

/// Toggles wireframe rendering for any entity it is attached to.
///
Expand Down Expand Up @@ -104,7 +105,7 @@ fn apply_global(
}
}

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

Expand Down

0 comments on commit bb3a879

Please sign in to comment.