mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix duplicated code
Former-commit-id: 3096669413032d1bdb43cb349c333948e497b538
This commit is contained in:
parent
f1b63732af
commit
fb0b0f682a
@ -92,15 +92,6 @@ impl FigureCache {
|
||||
];
|
||||
|
||||
|
||||
let mut mesh = Mesh::new();
|
||||
bone_meshes
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter_map(|(i, bm)| bm.as_ref().map(|bm| (i, bm)))
|
||||
.for_each(|(i, bone_mesh)| {
|
||||
mesh.push_mesh_map(bone_mesh, |vert| vert.with_bone_idx(i as u8))
|
||||
});
|
||||
|
||||
let mut mesh = Mesh::new();
|
||||
bone_meshes
|
||||
.iter()
|
||||
|
Loading…
Reference in New Issue
Block a user