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
@ -106,10 +106,7 @@ fn queue_custom(
|
|||||||
mut pipelines: ResMut<SpecializedMeshPipelines<CustomPipeline>>,
|
mut pipelines: ResMut<SpecializedMeshPipelines<CustomPipeline>>,
|
||||||
mut pipeline_cache: ResMut<PipelineCache>,
|
mut pipeline_cache: ResMut<PipelineCache>,
|
||||||
meshes: Res<RenderAssets<Mesh>>,
|
meshes: Res<RenderAssets<Mesh>>,
|
||||||
material_meshes: Query<
|
material_meshes: Query<(Entity, &MeshUniform, &Handle<Mesh>), With<InstanceMaterialData>>,
|
||||||
(Entity, &MeshUniform, &Handle<Mesh>),
|
|
||||||
(With<Handle<Mesh>>, With<InstanceMaterialData>),
|
|
||||||
>,
|
|
||||||
mut views: Query<(&ExtractedView, &mut RenderPhase<Transparent3d>)>,
|
mut views: Query<(&ExtractedView, &mut RenderPhase<Transparent3d>)>,
|
||||||
) {
|
) {
|
||||||
let draw_custom = transparent_3d_draw_functions
|
let draw_custom = transparent_3d_draw_functions
|
||||||
|
Loading…
Reference in New Issue
Block a user