Skip to content

Commit 88a9b30

Browse files
Merge pull request #98 from gyscos/master
Lowercase extension when checking type
2 parents 1b19efb + cb47f9c commit 88a9b30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mesh.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ impl Mesh {
126126
.extension()
127127
.and_then(std::ffi::OsStr::to_str)
128128
.unwrap_or("")
129+
.to_lowercase()
130+
.as_str()
129131
{
130132
"obj" => Mesh::from_obj(stl_file, recalc_normals)?,
131133
"stl" => Mesh::from_stl(stl_file, recalc_normals)?,

0 commit comments

Comments
 (0)