Scale layer height ranges too when scaling object in plater. #1284
This commit is contained in:
parent
a145f1b6aa
commit
c1c1416838
1 changed files with 13 additions and 1 deletions
|
@ -447,7 +447,7 @@ sub changescale {
|
|||
return if !$scale || $scale == -1;
|
||||
|
||||
$self->{list}->SetItem($obj_idx, 2, "$scale%");
|
||||
$object->scale($scale / 100);
|
||||
$object->changescale($scale / 100);
|
||||
$self->arrange;
|
||||
}
|
||||
|
||||
|
@ -1109,6 +1109,18 @@ sub _trigger_model_object {
|
|||
}
|
||||
}
|
||||
|
||||
sub changescale {
|
||||
my $self = shift;
|
||||
my ($scale) = @_;
|
||||
|
||||
my $variation = $scale / $self->scale;
|
||||
foreach my $range (@{ $self->layer_height_ranges }) {
|
||||
$range->[0] *= $variation;
|
||||
$range->[1] *= $variation;
|
||||
}
|
||||
$self->scale($scale);
|
||||
}
|
||||
|
||||
sub check_manifoldness {
|
||||
my $self = shift;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue