Skip to content

Commit 3994f11

Browse files
mweatherleymockersf
authored andcommitted
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.
1 parent 6539334 commit 3994f11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/bevy_gltf/src/loader.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::{
44
};
55

66
use alloc::collections::VecDeque;
7-
use bevy_animation::animated_field;
87
use bevy_asset::{
98
io::Reader, AssetLoadError, AssetLoader, Handle, LoadContext, ReadAssetBytesError,
109
};
@@ -275,7 +274,7 @@ async fn load_gltf<'a, 'b, 'c>(
275274

276275
#[cfg(feature = "bevy_animation")]
277276
let (animations, named_animations, animation_roots) = {
278-
use bevy_animation::{animation_curves::*, gltf_curves::*, VariableCurve};
277+
use bevy_animation::{animated_field, animation_curves::*, gltf_curves::*, VariableCurve};
279278
use bevy_math::curve::{ConstantCurve, Interval, UnevenSampleAutoCurve};
280279
use bevy_math::{Quat, Vec4};
281280
use gltf::animation::util::ReadOutputs;

0 commit comments

Comments
 (0)