Fixed a division by zero in 3D scene, if there is nothing to show.

Improved Prusa3D icon.
This commit is contained in:
bubnikv 2016-10-24 17:32:22 +02:00
parent 741a85187c
commit 51c8d73b11
2 changed files with 1 additions and 0 deletions

View File

@ -370,6 +370,7 @@ sub select_view {
sub zoom_to_bounding_box { sub zoom_to_bounding_box {
my ($self, $bb) = @_; my ($self, $bb) = @_;
return if ($bb->empty);
# calculate the zoom factor needed to adjust viewport to # calculate the zoom factor needed to adjust viewport to
# bounding box # bounding box

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 100 KiB