Skip to content

Commit cb82515

Browse files
committed
Don't return empty meshes.
1 parent 19ae331 commit cb82515

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,6 @@ pub fn run(input: Mesh, config: &Config) -> Vec<Part> {
124124
output_parts
125125
.into_iter()
126126
.map(|p| Part::from_mesh(Arc::unwrap_or_clone(p.mesh).transform(&normalization_tfm_inv)))
127+
.filter(|p| !p.mesh.is_empty())
127128
.collect()
128129
}

0 commit comments

Comments
 (0)