Upgrade base interpolation to 0.3 and remove interpolation_03 feature.
This commit is contained in:
parent
76ecdc80b6
commit
8964bdf9d6
@ -21,8 +21,7 @@ bevy = { version = "0.13", default-features = false, features = [
|
||||
"bevy_core_pipeline",
|
||||
] }
|
||||
bitfield = "0.14"
|
||||
interpolation = "0.2"
|
||||
interpolation_03 = { package = "interpolation", version = "0.3", optional = true }
|
||||
interpolation = "0.3"
|
||||
thiserror = "1.0"
|
||||
wgpu-types = "0.19"
|
||||
|
||||
|
@ -79,9 +79,6 @@ cargo run --example morph_targets
|
||||
- `bevy_ui` _(default)_ - Adds a render graph edge to prevent clashing with the
|
||||
UI. This adds a dependency on the `bevy_ui` crate and can be disabled if it is
|
||||
not used.
|
||||
- `interpolation_03` - Define `Lerp` trait impls using version 0.3 of the
|
||||
`interpolation` crate in addition to 0.2. This will become the default in the
|
||||
next breaking release.
|
||||
|
||||
## Licence
|
||||
|
||||
|
18
src/lib.rs
18
src/lib.rs
@ -118,15 +118,6 @@ impl Lerp for OutlineStencil {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "interpolation_03")]
|
||||
impl interpolation_03::Lerp for OutlineStencil {
|
||||
type Scalar = f32;
|
||||
|
||||
fn lerp(&self, other: &Self, scalar: &Self::Scalar) -> Self {
|
||||
<Self as Lerp>::lerp(self, other, scalar)
|
||||
}
|
||||
}
|
||||
|
||||
/// A component for rendering outlines around meshes.
|
||||
#[derive(Clone, Component, Default)]
|
||||
pub struct OutlineVolume {
|
||||
@ -156,15 +147,6 @@ impl Lerp for OutlineVolume {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "interpolation_03")]
|
||||
impl interpolation_03::Lerp for OutlineVolume {
|
||||
type Scalar = f32;
|
||||
|
||||
fn lerp(&self, other: &Self, scalar: &Self::Scalar) -> Self {
|
||||
<Self as Lerp>::lerp(self, other, scalar)
|
||||
}
|
||||
}
|
||||
|
||||
/// A component for specifying what layer(s) the outline should be rendered for.
|
||||
#[derive(Component, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Deref, DerefMut, Default)]
|
||||
pub struct OutlineRenderLayers(pub RenderLayers);
|
||||
|
Loading…
Reference in New Issue
Block a user