File tree Expand file tree Collapse file tree 4 files changed +4
-22
lines changed Expand file tree Collapse file tree 4 files changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -670,7 +670,6 @@ fn extract_mesh_materials<M: Material>(
670
670
Or < ( Changed < ViewVisibility > , Changed < MeshMaterial3d < M > > ) > ,
671
671
> ,
672
672
> ,
673
- mut removed_visibilities_query : Extract < RemovedComponents < ViewVisibility > > ,
674
673
mut removed_materials_query : Extract < RemovedComponents < MeshMaterial3d < M > > > ,
675
674
) {
676
675
for ( entity, view_visibility, material) in & changed_meshes_query {
@@ -683,10 +682,7 @@ fn extract_mesh_materials<M: Material>(
683
682
}
684
683
}
685
684
686
- for entity in removed_visibilities_query
687
- . read ( )
688
- . chain ( removed_materials_query. read ( ) )
689
- {
685
+ for entity in removed_materials_query. read ( ) {
690
686
// Only queue a mesh for removal if we didn't pick it up above.
691
687
// It's possible that a necessary component was removed and re-added in
692
688
// the same frame.
Original file line number Diff line number Diff line change @@ -1457,8 +1457,6 @@ pub fn extract_meshes_for_gpu_building(
1457
1457
) > ,
1458
1458
> ,
1459
1459
> ,
1460
- mut removed_visibilities_query : Extract < RemovedComponents < ViewVisibility > > ,
1461
- mut removed_global_transforms_query : Extract < RemovedComponents < GlobalTransform > > ,
1462
1460
mut removed_meshes_query : Extract < RemovedComponents < Mesh3d > > ,
1463
1461
gpu_culling_query : Extract < Query < ( ) , ( With < Camera > , Without < NoIndirectDrawing > ) > > ,
1464
1462
) {
@@ -1558,11 +1556,7 @@ pub fn extract_meshes_for_gpu_building(
1558
1556
1559
1557
// Also record info about each mesh that became invisible.
1560
1558
let mut queue = render_mesh_instance_queues. borrow_local_mut ( ) ;
1561
- for entity in removed_visibilities_query
1562
- . read ( )
1563
- . chain ( removed_global_transforms_query. read ( ) )
1564
- . chain ( removed_meshes_query. read ( ) )
1565
- {
1559
+ for entity in removed_meshes_query. read ( ) {
1566
1560
// Only queue a mesh for removal if we didn't pick it up above.
1567
1561
// It's possible that a necessary component was removed and re-added in
1568
1562
// the same frame.
Original file line number Diff line number Diff line change @@ -291,7 +291,6 @@ pub fn extract_skins(
291
291
skinned_mesh_inverse_bindposes : Extract < Res < Assets < SkinnedMeshInverseBindposes > > > ,
292
292
changed_transforms : Extract < Query < ( Entity , & GlobalTransform ) , Changed < GlobalTransform > > > ,
293
293
joints : Extract < Query < & GlobalTransform > > ,
294
- mut removed_visibilities_query : Extract < RemovedComponents < ViewVisibility > > ,
295
294
mut removed_skinned_meshes_query : Extract < RemovedComponents < SkinnedMesh > > ,
296
295
) {
297
296
let skin_uniforms = skin_uniforms. into_inner ( ) ;
@@ -317,10 +316,7 @@ pub fn extract_skins(
317
316
) ;
318
317
319
318
// Delete skins that became invisible.
320
- for skinned_mesh_entity in removed_visibilities_query
321
- . read ( )
322
- . chain ( removed_skinned_meshes_query. read ( ) )
323
- {
319
+ for skinned_mesh_entity in removed_skinned_meshes_query. read ( ) {
324
320
// Only remove a skin if we didn't pick it up in `add_or_delete_skins`.
325
321
// It's possible that a necessary component was removed and re-added in
326
322
// the same frame.
Original file line number Diff line number Diff line change @@ -321,7 +321,6 @@ pub fn extract_mesh_materials_2d<M: Material2d>(
321
321
Or < ( Changed < ViewVisibility > , Changed < MeshMaterial2d < M > > ) > ,
322
322
> ,
323
323
> ,
324
- mut removed_visibilities_query : Extract < RemovedComponents < ViewVisibility > > ,
325
324
mut removed_materials_query : Extract < RemovedComponents < MeshMaterial2d < M > > > ,
326
325
) {
327
326
for ( entity, view_visibility, material) in & changed_meshes_query {
@@ -332,10 +331,7 @@ pub fn extract_mesh_materials_2d<M: Material2d>(
332
331
}
333
332
}
334
333
335
- for entity in removed_visibilities_query
336
- . read ( )
337
- . chain ( removed_materials_query. read ( ) )
338
- {
334
+ for entity in removed_materials_query. read ( ) {
339
335
// Only queue a mesh for removal if we didn't pick it up above.
340
336
// It's possible that a necessary component was removed and re-added in
341
337
// the same frame.
You can’t perform that action at this time.
0 commit comments