Fixed a division by zero in 3D scene, if there is nothing to show.
Improved Prusa3D icon.
This commit is contained in:
parent
741a85187c
commit
51c8d73b11
@ -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
|
||||||
|
BIN
var/Slic3r.ico
BIN
var/Slic3r.ico
Binary file not shown.
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 100 KiB |
Loading…
Reference in New Issue
Block a user