From d5c9b7437739ba28408f9538f4b88bffd99191f8 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 29 Jun 2012 20:46:51 +0200 Subject: [PATCH] Allow scaling factor to be at least 2540 to allow the conversion of inch models --- lib/Slic3r/GUI/Plater.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index fc4760711..18a0557b0 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -370,7 +370,8 @@ sub changescale { my $obj_idx = $self->selected_object_idx; my $scale = $self->{scale}[$obj_idx]; - $scale = Wx::GetNumberFromUser("", "Enter the scale % for the selected object:", "Scale", $scale*100, 0, 1000, $self); + # max scale factor should be above 2540 to allow importing files exported in inches + $scale = Wx::GetNumberFromUser("", "Enter the scale % for the selected object:", "Scale", $scale*100, 0, 5000, $self); return if !$scale || $scale == -1; $self->statusbar->SetStatusText("Scaling object...");