diff --git a/crates/bevy_pbr/src/wireframe.rs b/crates/bevy_pbr/src/wireframe.rs index 5aff6e4df97b3..a0cee2abd7f34 100644 --- a/crates/bevy_pbr/src/wireframe.rs +++ b/crates/bevy_pbr/src/wireframe.rs @@ -108,29 +108,14 @@ fn apply_wireframe_material( commands.insert_or_spawn_batch(wireframes_to_spawn); } +type WireframeFilter = (With>, Without, Without); + /// Applies or removes a wireframe material on any mesh without a [`Wireframe`] component. -#[allow(clippy::type_complexity)] fn apply_global_wireframe_material( mut commands: Commands, config: Res, - meshes_without_material: Query< - Entity, - ( - With>, - Without, - Without, - Without>, - ), - >, - meshes_with_global_material: Query< - Entity, - ( - With>, - Without, - Without, - With>, - ), - >, + meshes_without_material: Query>)>, + meshes_with_global_material: Query>)>, global_material: Res, ) { if !config.is_changed() {