Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mesh_loader] Skip empty meshes
  • Loading branch information
Hugo Tunius committed Dec 1, 2017
1 parent f6a42cc commit a2a8ff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mesh_loader.rs
Expand Up @@ -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());
Expand Down

0 comments on commit a2a8ff2

Please sign in to comment.