mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Ported encloses_point() to XS and renamed to contains_point()
This commit is contained in:
parent
a225a8b2ef
commit
5f81292f3f
22 changed files with 81 additions and 76 deletions
|
@ -1024,7 +1024,7 @@ sub mouse_event {
|
|||
$parent->selection_changed(0);
|
||||
for my $preview (@{$parent->{object_previews}}) {
|
||||
my ($obj_idx, $instance_idx, $thumbnail) = @$preview;
|
||||
if (defined first { $_->contour->encloses_point($pos) } @$thumbnail) {
|
||||
if (defined first { $_->contour->contains_point($pos) } @$thumbnail) {
|
||||
$parent->{selected_objects} = [ [$obj_idx, $instance_idx] ];
|
||||
$parent->{list}->Select($obj_idx, 1);
|
||||
$parent->selection_changed(1);
|
||||
|
@ -1053,7 +1053,7 @@ sub mouse_event {
|
|||
} elsif ($event->Moving) {
|
||||
my $cursor = wxSTANDARD_CURSOR;
|
||||
for my $preview (@{$parent->{object_previews}}) {
|
||||
if (defined first { $_->contour->encloses_point($pos) } @{ $preview->[2] }) {
|
||||
if (defined first { $_->contour->contains_point($pos) } @{ $preview->[2] }) {
|
||||
$cursor = Wx::Cursor->new(wxCURSOR_HAND);
|
||||
last;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue