Files
bklronin 11d053fda4 Fix sketcher mode handling to prevent unintended line creation during drag operations
Major changes:
- Fixed right-click handler to directly set mode to NONE instead of relying on main app signal handling
- Added safety checks in left-click handler to prevent drawing when no draggable point is found in NONE mode
- Enhanced mode compatibility by treating Python None as SketchMode.NONE in set_mode() method
- Added comprehensive debug logging for mode changes and interaction state tracking
- Resolved integration issue where persistent constraint modes were prematurely reset by main app
- Ensured point dragging is only enabled in NONE mode, preventing accidental polyline creation

This fixes the reported issue where deactivating the line tool would still create lines when dragging,
and ensures proper mode transitions between drawing tools and selection/drag mode.
2025-08-16 22:30:18 +02:00

47 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Created with matplotlib (http://matplotlib.org/) -->
<svg height="72pt" version="1.1" viewBox="0 0 72 72" width="72pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style type="text/css">
*{stroke-linecap:butt;stroke-linejoin:round;}
</style>
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 72
L 72 72
L 72 0
L 0 0
z
" style="fill:none;opacity:0;"/>
</g>
<g id="text_1">
<path d="M 65.144375 35.006875
C 65.144375 32.425 63.43375 30.15125 60.703125 30.15125
L 33.991875 30.15125
L 45.105625 19.0375
C 46.019375 18.12375 46.550625 16.87 46.550625 15.584375
C 46.550625 14.288125 46.019375 13.034375 45.105625 12.13125
L 42.258125 9.315625
C 41.344375 8.4125 40.133125 7.88125 38.8475 7.88125
C 37.55125 7.88125 36.2975 8.4125 35.394375 9.315625
L 10.69125 33.986875
C 9.82 34.900625 9.28875 36.14375 9.28875 37.44
C 9.28875 38.725625 9.82 39.979375 10.69125 40.850625
L 35.394375 65.59625
C 36.2975 66.4675 37.55125 66.99875 38.8475 66.99875
C 40.133125 66.99875 41.386875 66.4675 42.258125 65.59625
L 45.105625 62.70625
C 46.019375 61.835 46.550625 60.58125 46.550625 59.295625
C 46.550625 58.01 46.019375 56.75625 45.105625 55.885
L 33.991875 44.72875
L 60.703125 44.72875
C 63.43375 44.72875 65.144375 42.444375 65.144375 39.8625
z
"/>
</g>
</g>
</svg>