From c78886e649d872bbdcca400cb9762c39b703df7d Mon Sep 17 00:00:00 2001 From: akimakinai <105044389+akimakinai@users.noreply.github.com> Date: Wed, 16 Oct 2024 08:42:35 +0900 Subject: [PATCH] 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 `::Out = (DenoiseCas, CasUniform)`. Setting its strength to zero correctly removes the effect after this change. --- crates/bevy_render/src/extract_component.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_render/src/extract_component.rs b/crates/bevy_render/src/extract_component.rs index da027ebf0f..64e744775f 100644 --- a/crates/bevy_render/src/extract_component.rs +++ b/crates/bevy_render/src/extract_component.rs @@ -207,7 +207,7 @@ fn extract_components( if let Some(component) = C::extract_component(query_item) { values.push((entity, component)); } else { - commands.entity(entity).remove::(); + commands.entity(entity).remove::(); } } *previous_len = values.len(); @@ -226,7 +226,7 @@ fn extract_visible_components( if let Some(component) = C::extract_component(query_item) { values.push((entity, component)); } else { - commands.entity(entity).remove::(); + commands.entity(entity).remove::(); } } }