mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Encode Windows paths for the C STL reader
This commit is contained in:
@@ -8,7 +8,7 @@ sub read_file {
|
|||||||
my ($file) = @_;
|
my ($file) = @_;
|
||||||
|
|
||||||
my $tmesh = Slic3r::TriangleMesh::XS->new;
|
my $tmesh = Slic3r::TriangleMesh::XS->new;
|
||||||
$tmesh->ReadSTLFile($file);
|
$tmesh->ReadSTLFile(Slic3r::encode_path($file));
|
||||||
$tmesh->Repair;
|
$tmesh->Repair;
|
||||||
my ($vertices, $facets) = @{$tmesh->ToPerl};
|
my ($vertices, $facets) = @{$tmesh->ToPerl};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user