mirror of
https://github.com/bevyengine/bevy
synced 2025-03-07 16:57:31 +00:00
Make bevy_gltf
compile without bevy_animation
feature (#16551)
# Objective See title. ## Solution Move `bevy_animation` import to where it is used. ## Testing Compiled with and without `bevy_animation` feature enabled.
This commit is contained in:
parent
2745aa102d
commit
83b725f41e
1 changed files with 1 additions and 2 deletions
|
@ -4,7 +4,6 @@ use crate::{
|
|||
};
|
||||
|
||||
use alloc::collections::VecDeque;
|
||||
use bevy_animation::animated_field;
|
||||
use bevy_asset::{
|
||||
io::Reader, AssetLoadError, AssetLoader, Handle, LoadContext, ReadAssetBytesError,
|
||||
};
|
||||
|
@ -275,7 +274,7 @@ async fn load_gltf<'a, 'b, 'c>(
|
|||
|
||||
#[cfg(feature = "bevy_animation")]
|
||||
let (animations, named_animations, animation_roots) = {
|
||||
use bevy_animation::{animation_curves::*, gltf_curves::*, VariableCurve};
|
||||
use bevy_animation::{animated_field, animation_curves::*, gltf_curves::*, VariableCurve};
|
||||
use bevy_math::curve::{ConstantCurve, Interval, UnevenSampleAutoCurve};
|
||||
use bevy_math::{Quat, Vec4};
|
||||
use gltf::animation::util::ReadOutputs;
|
||||
|
|
Loading…
Add table
Reference in a new issue