mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 12:49:10 +08:00
Bugfix, last commit was incomplete
This commit is contained in:
parent
a0fe93e8cf
commit
f9b6caaecb
@ -48,8 +48,19 @@ has 'perimeters' => (is => 'rw', default => sub { [] });
|
|||||||
# ordered collection of extrusion paths to fill surfaces
|
# ordered collection of extrusion paths to fill surfaces
|
||||||
has 'fills' => (is => 'rw', default => sub { [] });
|
has 'fills' => (is => 'rw', default => sub { [] });
|
||||||
|
|
||||||
|
sub BUILD {
|
||||||
|
my $self = shift;
|
||||||
|
$self->_update_flows;
|
||||||
|
}
|
||||||
|
|
||||||
sub _trigger_layer {
|
sub _trigger_layer {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
$self->_update_flows;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub _update_flows {
|
||||||
|
my $self = shift;
|
||||||
|
return if !$self->region;
|
||||||
|
|
||||||
$self->perimeter_flow($self->id == 0
|
$self->perimeter_flow($self->id == 0
|
||||||
? $self->region->first_layer_flows->{perimeter}
|
? $self->region->first_layer_flows->{perimeter}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user