@@ -4,9 +4,6 @@ use crate::{
44} ;
55
66use alloc:: collections:: VecDeque ;
7- use bevy_animation:: prelude:: {
8- Keyframes , MorphWeightsKeyframes , RotationKeyframes , ScaleKeyframes , TranslationKeyframes ,
9- } ;
107use bevy_asset:: {
118 io:: Reader , AssetLoadError , AssetLoader , Handle , LoadContext , ReadAssetBytesError ,
129} ;
@@ -65,7 +62,7 @@ use std::{
6562use thiserror:: Error ;
6663#[ cfg( feature = "bevy_animation" ) ]
6764use {
68- bevy_animation:: { AnimationTarget , AnimationTargetId } ,
65+ bevy_animation:: { prelude :: * , AnimationTarget , AnimationTargetId } ,
6966 smallvec:: SmallVec ,
7067} ;
7168
@@ -277,7 +274,7 @@ async fn load_gltf<'a, 'b, 'c>(
277274 let mut named_animations = HashMap :: default ( ) ;
278275 let mut animation_roots = HashSet :: default ( ) ;
279276 for animation in gltf. animations ( ) {
280- let mut animation_clip = bevy_animation :: AnimationClip :: default ( ) ;
277+ let mut animation_clip = AnimationClip :: default ( ) ;
281278 for channel in animation. channels ( ) {
282279 let interpolation = match channel. sampler ( ) . interpolation ( ) {
283280 gltf:: animation:: Interpolation :: Linear => Interpolation :: Linear ,
@@ -330,7 +327,7 @@ async fn load_gltf<'a, 'b, 'c>(
330327 animation_roots. insert ( * root_index) ;
331328 animation_clip. add_curve_to_target (
332329 AnimationTargetId :: from_names ( path. iter ( ) ) ,
333- bevy_animation :: VariableCurve {
330+ VariableCurve {
334331 keyframe_timestamps,
335332 keyframes,
336333 interpolation,
@@ -738,7 +735,7 @@ async fn load_gltf<'a, 'b, 'c>(
738735 if animation_roots. contains ( & node. index ( ) ) {
739736 world
740737 . entity_mut ( * node_index_to_entity_map. get ( & node. index ( ) ) . unwrap ( ) )
741- . insert ( bevy_animation :: AnimationPlayer :: default ( ) ) ;
738+ . insert ( AnimationPlayer :: default ( ) ) ;
742739 }
743740 }
744741 }
@@ -2468,7 +2465,7 @@ mod test {
24682465 {
24692466 "inverseBindMatrices": 0,
24702467 "joints": [1, 2]
2471- }
2468+ }
24722469 ],
24732470 "buffers": [
24742471 {
@@ -2480,15 +2477,15 @@ mod test {
24802477 {
24812478 "buffer": 0,
24822479 "byteLength": 128
2483- }
2480+ }
24842481 ],
24852482 "accessors": [
24862483 {
24872484 "bufferView" : 0,
24882485 "componentType" : 5126,
24892486 "count" : 2,
24902487 "type" : "MAT4"
2491- }
2488+ }
24922489 ],
24932490 "scene": 0,
24942491 "scenes": [{ "nodes": [0] }]
0 commit comments