Skip to content

Commit 6e10eba

Browse files
committed
Fix SelectTool: preserve movement validation after direct selection
Ensure non-movable objects remain non-movable when selected through direct selection. Continue through __move_or_resize_object validation flow instead of early return to maintain proper permission checks. Fixes #29
1 parent 2f91111 commit 6e10eba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotpy/events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,11 +1506,11 @@ def start_tracking(self, filter: StatefulEventFilter, event: QC.QEvent) -> None:
15061506
self.active = nearest
15071507
self.handle = nearest_handle
15081508
self.inside = nearest_inside
1509+
# Update distance for the new object
1510+
dist = nearest_dist
15091511
# Clear unselection pending since we've switched to a new object
15101512
self.unselection_pending = False
1511-
# No need to process further - we've completed the selection
1512-
plot.replot()
1513-
return
1513+
# Continue to move_or_resize_object for proper validation
15141514
else:
15151515
# Clicked on empty space - unselect everything
15161516
self.__unselect_objects(filter)

0 commit comments

Comments
 (0)