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
					
				| @ -4,7 +4,6 @@ use crate::{ | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| use alloc::collections::VecDeque; | use alloc::collections::VecDeque; | ||||||
| use bevy_animation::animated_field; |  | ||||||
| use bevy_asset::{ | use bevy_asset::{ | ||||||
|     io::Reader, AssetLoadError, AssetLoader, Handle, LoadContext, ReadAssetBytesError, |     io::Reader, AssetLoadError, AssetLoader, Handle, LoadContext, ReadAssetBytesError, | ||||||
| }; | }; | ||||||
| @ -275,7 +274,7 @@ async fn load_gltf<'a, 'b, 'c>( | |||||||
| 
 | 
 | ||||||
|     #[cfg(feature = "bevy_animation")] |     #[cfg(feature = "bevy_animation")] | ||||||
|     let (animations, named_animations, animation_roots) = { |     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::curve::{ConstantCurve, Interval, UnevenSampleAutoCurve}; | ||||||
|         use bevy_math::{Quat, Vec4}; |         use bevy_math::{Quat, Vec4}; | ||||||
|         use gltf::animation::util::ReadOutputs; |         use gltf::animation::util::ReadOutputs; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Matty Weatherley
						Matty Weatherley