Skip to content

Commit

Permalink
insert the gltf mesh name on the entity if there is one
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Apr 7, 2022
1 parent 8268e7f commit d15f5d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bevy_gltf/src/loader.rs
Expand Up @@ -801,6 +801,9 @@ fn load_node(
value: extras.get().to_string(),
});
}
if let Some(name) = mesh.name() {
mesh_entity.insert(Name::new(name.to_string()));
}
// Mark for adding skinned mesh
if let Some(skin) = gltf_node.skin() {
entity_to_skin_index_map.insert(mesh_entity.id(), skin.index());
Expand Down

0 comments on commit d15f5d0

Please sign in to comment.