mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
remove redundant query parameters (#4945)
# Objective In the `queue_custom` system in `shader_instancing` example, the query of `material_meshes` has a redundant `With<Handle<Mesh>>` query filter because `Handle<Mesh>` is included in the component access. ## Solution Remove the `With<Handle<Mesh>>` filter
This commit is contained in:
parent
765bd46c2e
commit
2f5a1c6e16
1 changed files with 1 additions and 4 deletions
|
@ -106,10 +106,7 @@ fn queue_custom(
|
|||
mut pipelines: ResMut<SpecializedMeshPipelines<CustomPipeline>>,
|
||||
mut pipeline_cache: ResMut<PipelineCache>,
|
||||
meshes: Res<RenderAssets<Mesh>>,
|
||||
material_meshes: Query<
|
||||
(Entity, &MeshUniform, &Handle<Mesh>),
|
||||
(With<Handle<Mesh>>, With<InstanceMaterialData>),
|
||||
>,
|
||||
material_meshes: Query<(Entity, &MeshUniform, &Handle<Mesh>), With<InstanceMaterialData>>,
|
||||
mut views: Query<(&ExtractedView, &mut RenderPhase<Transparent3d>)>,
|
||||
) {
|
||||
let draw_custom = transparent_3d_draw_functions
|
||||
|
|
Loading…
Reference in a new issue