diff --git a/src/lib.rs b/src/lib.rs index 92f5875..8f14bf5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,7 +21,6 @@ //! [`AutoGenerateOutlineNormalsPlugin`]. use bevy::asset::load_internal_asset; -use bevy::ecs::query::QueryItem; use bevy::prelude::*; use bevy::render::extract_component::{ ExtractComponent, ExtractComponentPlugin, UniformComponentPlugin, @@ -90,16 +89,6 @@ impl Default for OutlineStencil { } } -impl ExtractComponent for OutlineStencil { - type Query = &'static OutlineStencil; - type Filter = (); - type Out = Self; - - fn extract_component(item: QueryItem) -> Option { - Some(item.clone()) - } -} - fn lerp_bool(this: bool, other: bool, scalar: f32) -> bool { if scalar <= 0.0 { this @@ -208,7 +197,6 @@ impl Plugin for OutlinePlugin { ); app.add_plugins(( - ExtractComponentPlugin::::extract_visible(), ExtractComponentPlugin::::default(), UniformComponentPlugin::::default(), UniformComponentPlugin::::default(),