Skip to content

Commit

Permalink
Merge pull request #98 from gyscos/master
Browse files Browse the repository at this point in the history
Lowercase extension when checking type
  • Loading branch information
unlimitedbacon authored Sep 19, 2024
2 parents 1b19efb + cb47f9c commit 88a9b30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ impl Mesh {
.extension()
.and_then(std::ffi::OsStr::to_str)
.unwrap_or("")
.to_lowercase()
.as_str()
{
"obj" => Mesh::from_obj(stl_file, recalc_normals)?,
"stl" => Mesh::from_stl(stl_file, recalc_normals)?,
Expand Down

0 comments on commit 88a9b30

Please sign in to comment.