Permalink
Browse files

[mesh_loader] Skip empty meshes

  • Loading branch information...
k0nserv committed Dec 1, 2017
1 parent f6a42cc commit a2a8ff29197025d1dccffb6c14c41320d0c2927d
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/mesh_loader.rs
@@ -57,6 +57,9 @@ impl MeshLoader {
for (i, m) in models.iter().enumerate() {
let mut triangles = vec![];
let mesh = &m.mesh;
if mesh.indices.is_empty() && mesh.positions.is_empty() {
continue;
}
println!("Mesh with index {}", i);
println!("Mesh name {}", m.name);
println!("Num indices: {}", mesh.indices.len());

0 comments on commit a2a8ff2

Please sign in to comment.