From 6ce832e439c8646d9fcd65b72bd6b788e52f9f88 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 8 Jun 2017 20:50:24 +0200 Subject: [PATCH] The OpenGL Z-bufer has low precision, therefore a bounding box test had to be relaxed. --- lib/Slic3r/GUI/3DScene.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/3DScene.pm b/lib/Slic3r/GUI/3DScene.pm index a97c9dafa..8ecf10de7 100644 --- a/lib/Slic3r/GUI/3DScene.pm +++ b/lib/Slic3r/GUI/3DScene.pm @@ -396,7 +396,7 @@ sub mouse_event { my $pos3d = $self->mouse_to_3d(@$pos); # Only accept the initial position, if it is inside the volume bounding box. my $volume_bbox = $self->volumes->[$volume_idx]->transformed_bounding_box; - $volume_bbox->offset(0.01); + $volume_bbox->offset(1.); if ($volume_bbox->contains_point($pos3d)) { # The dragging operation is initiated. $self->_drag_volume_idx($volume_idx);