diff options
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -27,6 +27,7 @@ my %cli_options = (); 'save=s' => \$opt{save}, 'load=s@' => \$opt{load}, 'ignore-nonexistent-config' => \$opt{ignore_nonexistent_config}, + 'datadir=s' => \$opt{datadir}, 'export-svg' => \$opt{export_svg}, 'merge|m' => \$opt{merge}, ); @@ -70,6 +71,10 @@ if ($opt{save}) { # launch GUI my $gui; if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") { + { + no warnings 'once'; + $Slic3r::GUI::datadir = $opt{datadir} if $opt{datadir}; + } $gui = Slic3r::GUI->new; $gui->{skeinpanel}->load_config_file($_) for @{$opt{load}}; $gui->{skeinpanel}->load_config($cli_config); @@ -83,9 +88,9 @@ if (@ARGV) { # slicing from command line while (my $input_file = shift @ARGV) { my $print = Slic3r::Print->new(config => $config); - $print->add_object_from_file($input_file); + $print->add_objects_from_file($input_file); if ($opt{merge}) { - $print->add_object_from_file($_) for splice @ARGV, 0; + $print->add_objects_from_file($_) for splice @ARGV, 0; } $print->duplicate; $print->arrange_objects if @{$print->objects} > 1; @@ -214,6 +219,9 @@ $j --extra-perimeters Add more perimeters when needed (default: yes) --randomize-start Randomize starting point across layers (default: yes) --avoid-crossing-perimeters Optimize travel moves so that no perimeters are crossed (default: no) + --only-retract-when-crossing-perimeters + Disable retraction when travelling between infill paths inside the same island. + (default: no) --solid-infill-below-area Force solid infill when a region has a smaller area than this threshold (mm^2, default: $config->{solid_infill_below_area}) |