mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
The OpenGL Z-bufer has low precision, therefore a bounding box test
had to be relaxed.
This commit is contained in:
parent
2bbcd49278
commit
6ce832e439
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue