From c9325338a80eda7fbb35fe3a2f067274666e475c Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 12 Jul 2017 23:28:11 +0200 Subject: [PATCH] Fixed "upscaled objects cannot be cut above original height" https://github.com/prusa3d/Slic3r/issues/419 --- lib/Slic3r/GUI/Plater/ObjectCutDialog.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Slic3r/GUI/Plater/ObjectCutDialog.pm b/lib/Slic3r/GUI/Plater/ObjectCutDialog.pm index 7889b3d66..7712bd01d 100644 --- a/lib/Slic3r/GUI/Plater/ObjectCutDialog.pm +++ b/lib/Slic3r/GUI/Plater/ObjectCutDialog.pm @@ -12,10 +12,8 @@ use Wx::Event qw(EVT_CLOSE EVT_BUTTON); use base 'Wx::Dialog'; sub new { - my $class = shift; - my ($parent, %params) = @_; + my ($class, $parent, %params) = @_; my $self = $class->SUPER::new($parent, -1, $params{object}->name, wxDefaultPosition, [500,500], wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER); - $self->{model_object_idx} = $params{model_object_idx}; $self->{model_object} = $params{model_object}; $self->{new_model_objects} = []; # Mark whether the mesh cut is valid. @@ -62,7 +60,7 @@ sub new { label => 'Z', default => $self->{cut_options}{z}, min => 0, - max => $self->{model_object}->bounding_box->size->z, + max => $self->{model_object}->bounding_box->size->z * $self->{model_object}->instances->[0]->scaling_factor, full_width => 1, )); {