Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions crates/bevy_render/src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1004,15 +1004,17 @@ impl DirtySpecializations {
})),
)
})
.chain(last_frame_view_pending_queues.iter().filter_map(
|(entity, main_entity)| {
if render_view_visible_mesh_entities.entity_pair_is_visible(*entity, *main_entity) {
Some((entity, main_entity))
} else {
None
}
},
))
.chain(
last_frame_view_pending_queues
.iter()
.filter_map(|(_, main_entity)| {
// Resolve pending entries against the current visible entities.
self.entity_pair_from_visible_main_entity(
render_view_visible_mesh_entities,
main_entity,
)
}),
)
}

/// Iterates over all renderables that should be removed from the phase.
Expand Down Expand Up @@ -1094,7 +1096,13 @@ impl DirtySpecializations {
.chain(
last_frame_view_pending_queues
.iter()
.map(|(entity, main_entity)| (entity, main_entity)),
.filter_map(|(_, main_entity)| {
// Resolve pending entries against the current visible entities.
self.entity_pair_from_visible_main_entity(
render_visible_mesh_entities,
main_entity,
)
}),
)
.filter(|(_, main_entity)| {
mesh_instances_queued_this_iteration_scratch_space.insert(**main_entity)
Expand Down
Loading