Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-07-06 13:39:28 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-07-06 13:39:28 +0400
commitab584babf6bcc1e4520cf60a663e6006298a5c1b (patch)
tree4bffe8bd5f4fa6863f99c37265acbc4715dba084 /lib
parent28f8083ab7c76ce8bfee1f4c879e2fb57d36c238 (diff)
Encode Windows paths for the C STL reader
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/Format/STL.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Slic3r/Format/STL.pm b/lib/Slic3r/Format/STL.pm
index 705c7537a..48b242933 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};