mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Small optimization in case no overhang logic is required at all
This commit is contained in:
parent
c57a88c943
commit
6f6ee40dae
1 changed files with 3 additions and 1 deletions
|
@ -96,8 +96,10 @@ sub change_layer {
|
||||||
my ($layer) = @_;
|
my ($layer) = @_;
|
||||||
|
|
||||||
$self->layer($layer);
|
$self->layer($layer);
|
||||||
|
|
||||||
|
# avoid computing overhangs if they're not needed
|
||||||
$self->_layer_overhangs(
|
$self->_layer_overhangs(
|
||||||
$layer->id > 0
|
$layer->id > 0 && ($Slic3r::Config->overhangs || $Slic3r::Config->start_perimeters_at_non_overhang)
|
||||||
? [ map $_->expolygon, grep $_->surface_type == S_TYPE_BOTTOM, map @{$_->slices}, @{$layer->regions} ]
|
? [ map $_->expolygon, grep $_->surface_type == S_TYPE_BOTTOM, map @{$_->slices}, @{$layer->regions} ]
|
||||||
: []
|
: []
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue