Using the C++ file loaders.

This commit is contained in:
bubnikv 2017-02-26 21:54:42 +01:00
parent 121b3c31d2
commit b7aeeb968b
4 changed files with 9 additions and 6 deletions

View file

@ -25,7 +25,7 @@ my %opt = ();
}
{
my $model = Slic3r::Format::STL->read_file($ARGV[0]);
my $model = Slic3r::Model->load_stl(Slic3r::encode_path($ARGV[0]), basename($ARGV[0]));
my $basename = $ARGV[0];
$basename =~ s/\.stl$//i;