From 659eb3412b132350bafad6a9c8fd74feaa5560fd Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 13 Apr 2018 14:40:42 +0200 Subject: [PATCH] Fixed value of z in cut dialog when object is scaled --- lib/Slic3r/GUI/Plater/ObjectCutDialog.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Plater/ObjectCutDialog.pm b/lib/Slic3r/GUI/Plater/ObjectCutDialog.pm index 7f930c1d0f..7b5752cd2b 100644 --- a/lib/Slic3r/GUI/Plater/ObjectCutDialog.pm +++ b/lib/Slic3r/GUI/Plater/ObjectCutDialog.pm @@ -60,7 +60,7 @@ sub new { label => 'Z', default => $self->{cut_options}{z}, min => 0, - max => $self->{model_object}->bounding_box->size->z * $self->{model_object}->instances->[0]->scaling_factor, + max => $self->{model_object}->bounding_box->size->z, full_width => 1, )); { @@ -244,7 +244,7 @@ sub _update { $self->{canvas}->reset_objects; $self->{canvas}->load_object($_, undef, undef, [0]) for @objects; $self->{canvas}->SetCuttingPlane( - $self->{cut_options}{z} / $self->{model_object}->instances->[0]->scaling_factor, + $self->{cut_options}{z}, [@expolygons], ); $self->{canvas}->update_volumes_colors_by_extruder($self->GetParent->{config});