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

60 lines
1.8 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 57.860938 45.94
C 57.860938 45.865625 57.860938 45.79125 57.818438 45.716875
L 35.994687 27.72875
L 14.181562 45.716875
C 14.181562 45.79125 14.139062 45.865625 14.139062 45.94
L 14.139062 64.15125
C 14.139062 65.479375 15.244062 66.584375 16.572187 66.584375
L 31.139063 66.584375
L 31.139063 52.0175
L 40.860938 52.0175
L 40.860938 66.584375
L 55.427813 66.584375
C 56.755938 66.584375 57.860938 65.479375 57.860938 64.15125
z
M 66.318438 43.32625
C 66.732813 42.826875 66.658438 42.03 66.169688 41.615625
L 57.860938 34.709375
L 57.860938 19.22875
C 57.860938 18.54875 57.329688 18.0175 56.639063 18.0175
L 49.360938 18.0175
C 48.670312 18.0175 48.139062 18.54875 48.139062 19.22875
L 48.139062 26.62375
L 38.884687 18.88875
C 37.290937 17.560625 34.709063 17.560625 33.115313 18.88875
L 5.830312 41.615625
C 5.341562 42.03 5.267187 42.826875 5.681562 43.32625
L 8.029687 46.13125
C 8.220937 46.354375 8.529062 46.51375 8.826562 46.545625
C 9.166562 46.588125 9.474687 46.47125 9.740312 46.28
L 35.994687 24.3925
L 62.259687 46.28
C 62.482813 46.47125 62.748438 46.545625 63.056562 46.545625
C 63.088437 46.545625 63.130938 46.545625 63.173438 46.545625
C 63.470938 46.51375 63.779063 46.354375 63.970313 46.13125
z
"/>
</g>
</g>
</svg>