Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2018-08-27 15:13:06 +0300
committerEnrico Turri <enricoturri@seznam.cz>2018-08-27 15:13:06 +0300
commit8eb36b1bf91a22e94df18fec3ae462668dd076a4 (patch)
tree56bd8e55a81430df3c2ca52596c63c0b454d01d1 /lib
parent4b25d3924b65b72294958b239eca36372e75a7c5 (diff)
Fixed undefined axis in rotate method of plater.pm
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/GUI/Plater.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm
index 4055b2b36..8e5882049 100644
--- a/lib/Slic3r/GUI/Plater.pm
+++ b/lib/Slic3r/GUI/Plater.pm
@@ -157,11 +157,6 @@ sub new {
$self->rotate(rad2deg($angle), Z, 'absolute');
}
else {
-
- print "angle: ";
- print $angle;
- print "\n";
-
$self->rotate(rad2deg($angle), undef, 'absolute', $axis_x, $axis_y, $axis_z) if $angle != 0;
}
};
@@ -1187,7 +1182,10 @@ sub rotate {
# $model_object->center_around_origin;
# $self->reset_thumbnail($obj_idx);
}
- Slic3r::GUI::update_rotation_value(deg2rad($angle), $axis == X ? "x" : ($axis == Y ? "y" : "z"));
+
+ if (defined $axis) {
+ Slic3r::GUI::update_rotation_value(deg2rad($angle), $axis == X ? "x" : ($axis == Y ? "y" : "z"));
+ }
# update print and start background processing
$self->{print}->add_model_object($model_object, $obj_idx);