mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
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)
This commit is contained in:
@@ -1016,9 +1016,10 @@ sub repaint {
|
|||||||
$dc->SetBrush($parent->{objects_brush});
|
$dc->SetBrush($parent->{objects_brush});
|
||||||
}
|
}
|
||||||
foreach my $expolygon (@$thumbnail) {
|
foreach my $expolygon (@$thumbnail) {
|
||||||
my $points = $expolygon->contour->pp;
|
foreach my $points (@{$expolygon->pp}) {
|
||||||
$dc->DrawPolygon($parent->points_to_pixel($points, 1), 0, 0);
|
$dc->DrawPolygon($parent->points_to_pixel($points, 1), 0, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (0) {
|
if (0) {
|
||||||
# draw bounding box for debugging purposes
|
# draw bounding box for debugging purposes
|
||||||
@@ -1102,7 +1103,7 @@ sub mouse_event {
|
|||||||
$parent->Refresh;
|
$parent->Refresh;
|
||||||
} elsif ($event->Moving) {
|
} elsif ($event->Moving) {
|
||||||
my $cursor = wxSTANDARD_CURSOR;
|
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);
|
$cursor = Wx::Cursor->new(wxCURSOR_HAND);
|
||||||
}
|
}
|
||||||
$self->SetCursor($cursor);
|
$self->SetCursor($cursor);
|
||||||
|
|||||||
Reference in New Issue
Block a user