Remove unused extraction of OutlineStencil.
This commit is contained in:
parent
7ccd52ee83
commit
fd8e98f986
12
src/lib.rs
12
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<Self::Query>) -> Option<Self> {
|
||||
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::<OutlineStencil>::extract_visible(),
|
||||
ExtractComponentPlugin::<OutlineRenderLayers>::default(),
|
||||
UniformComponentPlugin::<OutlineStencilUniform>::default(),
|
||||
UniformComponentPlugin::<OutlineVolumeUniform>::default(),
|
||||
|
Loading…
Reference in New Issue
Block a user