Skip to content

Commit

Permalink
min_layer_height and max_layer_height are arrays (because they are ti…
Browse files Browse the repository at this point in the history
…ed to the extruder).
  • Loading branch information
lordofhyphens committed Jan 15, 2019
1 parent 916c30c commit a4a0d52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Slic3r/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,11 @@ sub validate {
if $self->support_material || $self->support_material_enforce_layers > 0;
}
# --min-layer-height and --max-layer-height
for (my $extruder=0; $extruder < scalar @{$self->max_layer_height}; $extruder++) {
die "Max layer height should be greater than min layer height."
if $self->adaptive_slicing && ($self->max_layer_height < $self->min_layer_height);

if $self->adaptive_slicing && ($self->max_layer_height->[$extruder] < $self->min_layer_height->[$extruder]);
};

# extrusion widths
{
my $max_nozzle_diameter = max(@{ $self->nozzle_diameter });
Expand Down

0 comments on commit a4a0d52

Please sign in to comment.