From ab584babf6bcc1e4520cf60a663e6006298a5c1b Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 6 Jul 2013 11:39:28 +0200 Subject: [PATCH] Encode Windows paths for the C STL reader --- lib/Slic3r/Format/STL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Format/STL.pm b/lib/Slic3r/Format/STL.pm index 705c7537..48b24293 100644 --- a/lib/Slic3r/Format/STL.pm +++ b/lib/Slic3r/Format/STL.pm @@ -8,7 +8,7 @@ sub read_file { my ($file) = @_; my $tmesh = Slic3r::TriangleMesh::XS->new; - $tmesh->ReadSTLFile($file); + $tmesh->ReadSTLFile(Slic3r::encode_path($file)); $tmesh->Repair; my ($vertices, $facets) = @{$tmesh->ToPerl};