We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a06802a commit 8f57da9Copy full SHA for 8f57da9
crates/bevy_render/src/extract_component.rs
@@ -205,6 +205,8 @@ fn extract_components<C: ExtractComponent>(
205
for (entity, query_item) in &query {
206
if let Some(component) = C::extract_component(query_item) {
207
values.push((entity.id(), component));
208
+ } else {
209
+ commands.entity(entity.id()).remove::<C>();
210
}
211
212
*previous_len = values.len();
@@ -222,6 +224,8 @@ fn extract_visible_components<C: ExtractComponent>(
222
224
if view_visibility.get() {
223
225
226
227
228
229
230
231
0 commit comments