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 @models = map Slic3r::Format::STL->read_file($_), @ARGV;
my @models = map Slic3r::Model->load_stl(Slic3r::encode_path($_), basename($_)), @ARGV;
my $output_file = $ARGV[0];
$output_file =~ s/\.stl$/.amf.xml/i;