mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 06:00:20 +00:00
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.
This commit is contained in:
parent
ed351294ec
commit
c78886e649
1 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ fn extract_components<C: ExtractComponent>(
|
||||||
if let Some(component) = C::extract_component(query_item) {
|
if let Some(component) = C::extract_component(query_item) {
|
||||||
values.push((entity, component));
|
values.push((entity, component));
|
||||||
} else {
|
} else {
|
||||||
commands.entity(entity).remove::<C>();
|
commands.entity(entity).remove::<C::Out>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*previous_len = values.len();
|
*previous_len = values.len();
|
||||||
|
@ -226,7 +226,7 @@ fn extract_visible_components<C: ExtractComponent>(
|
||||||
if let Some(component) = C::extract_component(query_item) {
|
if let Some(component) = C::extract_component(query_item) {
|
||||||
values.push((entity, component));
|
values.push((entity, component));
|
||||||
} else {
|
} else {
|
||||||
commands.entity(entity).remove::<C>();
|
commands.entity(entity).remove::<C::Out>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue