mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 15:19:03 +08:00
Bugfix: reprocess brim and skirt after changing number of copies
This commit is contained in:
parent
9daadd1fb6
commit
d8bb0bff7f
@ -565,16 +565,20 @@ sub increase {
|
|||||||
$self->{list}->SetItem($obj_idx, 1, $model_object->instances_count);
|
$self->{list}->SetItem($obj_idx, 1, $model_object->instances_count);
|
||||||
|
|
||||||
# only autoarrange if user has autocentering enabled
|
# only autoarrange if user has autocentering enabled
|
||||||
|
$self->stop_background_process;
|
||||||
if ($Slic3r::GUI::Settings->{_}{autocenter}) {
|
if ($Slic3r::GUI::Settings->{_}{autocenter}) {
|
||||||
$self->arrange;
|
$self->arrange;
|
||||||
} else {
|
} else {
|
||||||
$self->update;
|
$self->update;
|
||||||
}
|
}
|
||||||
|
$self->schedule_background_process;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub decrease {
|
sub decrease {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
|
$self->stop_background_process;
|
||||||
|
|
||||||
my ($obj_idx, $object) = $self->selected_object;
|
my ($obj_idx, $object) = $self->selected_object;
|
||||||
my $model_object = $self->{model}->objects->[$obj_idx];
|
my $model_object = $self->{model}->objects->[$obj_idx];
|
||||||
if ($model_object->instances_count >= 2) {
|
if ($model_object->instances_count >= 2) {
|
||||||
@ -590,6 +594,7 @@ sub decrease {
|
|||||||
$self->{list}->Select($obj_idx, 1);
|
$self->{list}->Select($obj_idx, 1);
|
||||||
}
|
}
|
||||||
$self->update;
|
$self->update;
|
||||||
|
$self->schedule_background_process;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub rotate {
|
sub rotate {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user