Skip to content

Commit

Permalink
Draw more detailed thumbnails in plater and turn cursor to hand also …
Browse files Browse the repository at this point in the history
…when moving inside holes (otherwise objects with thin walls would not be easy to select)
  • Loading branch information
alranel committed Dec 29, 2013
1 parent 231bffa commit ca29520
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Slic3r/GUI/Plater.pm
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ca29520

Please sign in to comment.