From ca2952060da0631908e1af3d70b56e1fea2f1c5a Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 29 Dec 2013 01:28:06 +0100 Subject: [PATCH] Draw more detailed thumbnails in plater and turn cursor to hand also when moving inside holes (otherwise objects with thin walls would not be easy to select) --- lib/Slic3r/GUI/Plater.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index ed85250a2a..4bc0a27283 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1016,8 +1016,9 @@ sub repaint { $dc->SetBrush($parent->{objects_brush}); } foreach my $expolygon (@$thumbnail) { - my $points = $expolygon->contour->pp; - $dc->DrawPolygon($parent->points_to_pixel($points, 1), 0, 0); + foreach my $points (@{$expolygon->pp}) { + $dc->DrawPolygon($parent->points_to_pixel($points, 1), 0, 0); + } } if (0) { @@ -1102,7 +1103,7 @@ sub mouse_event { $parent->Refresh; } elsif ($event->Moving) { my $cursor = wxSTANDARD_CURSOR; - if (defined first { $_->contains_point($pos) } map @{$_->instance_thumbnails}, @{ $parent->{objects} }) { + if (defined first { $_->contour->contains_point($pos) } map @$_, map @{$_->instance_thumbnails}, @{ $parent->{objects} }) { $cursor = Wx::Cursor->new(wxCURSOR_HAND); } $self->SetCursor($cursor);