mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 05:24:01 -06:00
Make --output accept directories. #535
This commit is contained in:
parent
deaa188630
commit
0e620f3ad2
3 changed files with 8 additions and 4 deletions
|
@ -775,6 +775,10 @@ sub expanded_output_filepath {
|
|||
my $self = shift;
|
||||
my ($path) = @_;
|
||||
|
||||
# if output path is an existing directory, we take that and append
|
||||
# the specified filename format
|
||||
$path = File::Spec->join($path, $Slic3r::Config->output_filename_format) if ($path && -d $path);
|
||||
|
||||
# if no explicit output file was defined, we take the input
|
||||
# file directory and append the specified filename format
|
||||
my $input_file = $self->objects->[0]->input_file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue