Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
the10thWiz committed Sep 14, 2022
1 parent 9bae80f commit eb467ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/bevy_core/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,3 @@ impl Deref for Name {
self.name.as_ref()
}
}

6 changes: 4 additions & 2 deletions crates/bevy_gltf/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ async fn load_gltf<'a, 'b>(
}
}


let mut meshes = vec![];
let mut named_meshes = HashMap::default();
for mesh in gltf.meshes() {
Expand Down Expand Up @@ -544,7 +543,10 @@ async fn load_gltf<'a, 'b>(
}

fn is_animation_root(gltf: &gltf::Gltf, node: &gltf::Node) -> bool {
gltf.animations().flat_map(|a| a.channels()).any(|c| node.children().any(|n| c.target().node().index() == n.index()))
gltf.animations().flat_map(|a| a.channels()).any(|c| {
node.children()
.any(|n| c.target().node().index() == n.index())
})
}

fn node_name(node: &Node) -> Name {
Expand Down

0 comments on commit eb467ea

Please sign in to comment.