mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'master' into 'master'
Fix duplicated code See merge request veloren/veloren!76 Former-commit-id: b58575ac5f3ecd41ac4798fe98f25034891478a9
This commit is contained in:
commit
0934522e0a
@ -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