mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-03 01:50:41 +08:00
Bugfix: scale to size didn't work multiple times. #3768
This commit is contained in:
parent
7eed7f2dba
commit
b571f4af84
@ -1008,7 +1008,7 @@ sub changescale {
|
|||||||
my $newsize = Wx::GetTextFromUser("Enter the new max size for the selected object:",
|
my $newsize = Wx::GetTextFromUser("Enter the new max size for the selected object:",
|
||||||
"Scale", $cursize, $self);
|
"Scale", $cursize, $self);
|
||||||
return if !$newsize || $newsize !~ /^\d*(?:\.\d*)?$/ || $newsize < 0;
|
return if !$newsize || $newsize !~ /^\d*(?:\.\d*)?$/ || $newsize < 0;
|
||||||
$scale = $newsize / $cursize * 100;
|
$scale = $model_instance->scaling_factor * $newsize / $cursize * 100;
|
||||||
} else {
|
} else {
|
||||||
# max scale factor should be above 2540 to allow importing files exported in inches
|
# max scale factor should be above 2540 to allow importing files exported in inches
|
||||||
# Wx::GetNumberFromUser() does not support decimal numbers
|
# Wx::GetNumberFromUser() does not support decimal numbers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user