Skip to content

Commit c78886e

Browse files
authored
Remove ExtractComponent::Out (#15926)
# Objective - `C: ExtractComponent` inserts `C::Out` instead of `C`, so we need to remove `C::Out`. cc #15904. ## Solution - `C` -> `C::Out` ## Testing - CAS has `<ContrastAdaptiveSharpening as ExtractComponent>::Out = (DenoiseCas, CasUniform)`. Setting its strength to zero correctly removes the effect after this change.
1 parent ed35129 commit c78886e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_render/src/extract_component.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn extract_components<C: ExtractComponent>(
207207
if let Some(component) = C::extract_component(query_item) {
208208
values.push((entity, component));
209209
} else {
210-
commands.entity(entity).remove::<C>();
210+
commands.entity(entity).remove::<C::Out>();
211211
}
212212
}
213213
*previous_len = values.len();
@@ -226,7 +226,7 @@ fn extract_visible_components<C: ExtractComponent>(
226226
if let Some(component) = C::extract_component(query_item) {
227227
values.push((entity, component));
228228
} else {
229-
commands.entity(entity).remove::<C>();
229+
commands.entity(entity).remove::<C::Out>();
230230
}
231231
}
232232
}

0 commit comments

Comments
 (0)