Slightly increased limit for zoom out

This commit is contained in:
Enrico Turri
2019-01-15 12:59:28 +01:00
parent 65d8b90473
commit 44efc71265

View File

@@ -5708,7 +5708,7 @@ void GLCanvas3D::set_camera_zoom(float zoom)
// Don't allow to zoom too far outside the scene.
float zoom_min = _get_zoom_to_bounding_box_factor(_max_bounding_box());
if (zoom_min > 0.0f)
zoom = std::max(zoom, zoom_min * 0.8f);
zoom = std::max(zoom, zoom_min * 0.7f);
m_camera.zoom = zoom;
viewport_changed();