Fixed value of z in cut dialog when object is scaled
This commit is contained in:
parent
359e7e4d32
commit
659eb3412b
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ sub new {
|
||||||
label => 'Z',
|
label => 'Z',
|
||||||
default => $self->{cut_options}{z},
|
default => $self->{cut_options}{z},
|
||||||
min => 0,
|
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,
|
full_width => 1,
|
||||||
));
|
));
|
||||||
{
|
{
|
||||||
|
@ -244,7 +244,7 @@ sub _update {
|
||||||
$self->{canvas}->reset_objects;
|
$self->{canvas}->reset_objects;
|
||||||
$self->{canvas}->load_object($_, undef, undef, [0]) for @objects;
|
$self->{canvas}->load_object($_, undef, undef, [0]) for @objects;
|
||||||
$self->{canvas}->SetCuttingPlane(
|
$self->{canvas}->SetCuttingPlane(
|
||||||
$self->{cut_options}{z} / $self->{model_object}->instances->[0]->scaling_factor,
|
$self->{cut_options}{z},
|
||||||
[@expolygons],
|
[@expolygons],
|
||||||
);
|
);
|
||||||
$self->{canvas}->update_volumes_colors_by_extruder($self->GetParent->{config});
|
$self->{canvas}->update_volumes_colors_by_extruder($self->GetParent->{config});
|
||||||
|
|
Loading…
Add table
Reference in a new issue