Skip to content

Commit

Permalink
Lowercase extension when checking type
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed Sep 19, 2024
1 parent c188578 commit cb47f9c
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 cb47f9c

Please sign in to comment.