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.
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
%PDF-1.4
|
||||
%<25><> <20><>
|
||||
1 0 obj
|
||||
<< /Pages 2 0 R /Type /Catalog >>
|
||||
endobj
|
||||
8 0 obj
|
||||
<< /ExtGState 4 0 R /Font 3 0 R /Pattern 5 0 R
|
||||
/ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] /Shading 6 0 R
|
||||
/XObject 7 0 R >>
|
||||
endobj
|
||||
10 0 obj
|
||||
<< /Annots [ ] /Contents 9 0 R
|
||||
/Group << /CS /DeviceRGB /S /Transparency /Type /Group >>
|
||||
/MediaBox [ 0 0 72 72 ] /Parent 2 0 R /Resources 8 0 R /Type /Page >>
|
||||
endobj
|
||||
9 0 obj
|
||||
<< /Filter /FlateDecode /Length 11 0 R >>
|
||||
stream
|
||||
x<EFBFBD>u<EFBFBD>Kn1D<>:<3A>N@<40><12><>2A<32><41><EFBFBD>
|
||||
|
||||
lj<EFBFBD><EFBFBD><EFBFBD>@|<7C><><EFBFBD>֧<18><>o<EFBFBD>b<EFBFBD>"<22><><EFBFBD>y<EFBFBD><79><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD>w<EFBFBD><77>a<EFBFBD><61><<3C><>q<}|<7C>Ǜq<C79B>?M<>x<EFBFBD><78><EFBFBD><EFBFBD> <09>ߍ<><05>^]U<1E><><18>$>z<><7A>ȧ<EFBFBD>2<>y<EFBFBD>,Z<>N<EFBFBD><4E>4<EFBFBD><34><EFBFBD>_<13><><EFBFBD>:<3A><><EFBFBD>b;<3B>P&<26><><EFBFBD>ʮ<>)<29><>k<EFBFBD>2<EFBFBD>r#<23><><10><1D><>3y<17><><EFBFBD><1C><><EFBFBD>bc<62><63><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD>ͫ+<2B>c*aT<61>1&'<27>
|
||||
Z<11><><EFBFBD><EFBFBD>-p<18><><EFBFBD>"=<3D><08>\<5C>-X<><19> <09><>az<>ݫD<DDAB><44>IT<49><54><02>b%<25><>\<5C>5Qr<51><72>Z<EFBFBD><5A><EFBFBD>uz<75>(<28>T?PT<50><54><EFBFBD>RJw<4A><1C>@<40><>f<><66><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4<EFBFBD>J<EFBFBD><4A>l<04>W<EFBFBD>A|Z<EE8687><0E><>-A<>f<>H<11>E<EFBFBD><0E><><EFBFBD>m 6<>Lft"<22>V<EFBFBD><56>S<EFBFBD>+<2B>Ȯ<EFBFBD><C8AE><EFBFBD>\,<06>i<EFBFBD>v!<21><><EFBFBD>Rf<52>#<23>F<EFBFBD><46><03><><EFBFBD>2<>o<EFBFBD><11><>v#<23><><EFBFBD><EFBFBD>`:l<><6C><EFBFBD>%<25>N<EFBFBD>v<EFBFBD>LEڵ<45><DAB5>з]J=<3D><><EFBFBD><EFBFBD><EFBFBD>H<EFBFBD>ыa,<2C>5c`<60><>f=<3D><>i0W<30><15>`5E?<3F>u!7<>x<EFBFBD>2vk<76>t
|
||||
<EFBFBD><EFBFBD>ֱӂ<><D382>Ba1H<05><>wg<77>ս!<21>H<19><>3<EFBFBD>͘?<3F>\<1D>
|
||||
endstream
|
||||
endobj
|
||||
11 0 obj
|
||||
500
|
||||
endobj
|
||||
3 0 obj
|
||||
<< >>
|
||||
endobj
|
||||
4 0 obj
|
||||
<< /A1 << /CA 0 /Type /ExtGState /ca 0 >>
|
||||
/A2 << /CA 1 /Type /ExtGState /ca 1 >> >>
|
||||
endobj
|
||||
5 0 obj
|
||||
<< >>
|
||||
endobj
|
||||
6 0 obj
|
||||
<< >>
|
||||
endobj
|
||||
7 0 obj
|
||||
<< >>
|
||||
endobj
|
||||
2 0 obj
|
||||
<< /Count 1 /Kids [ 10 0 R ] /Type /Pages >>
|
||||
endobj
|
||||
12 0 obj
|
||||
<< /CreationDate (D:20160601123507-04'00')
|
||||
/Creator (matplotlib 1.5.2rc2.post1933.dev0+gb775a26, http://matplotlib.org)
|
||||
/Producer (matplotlib pdf backend) >>
|
||||
endobj
|
||||
xref
|
||||
0 13
|
||||
0000000000 65535 f
|
||||
0000000016 00000 n
|
||||
0000001161 00000 n
|
||||
0000000978 00000 n
|
||||
0000000999 00000 n
|
||||
0000001098 00000 n
|
||||
0000001119 00000 n
|
||||
0000001140 00000 n
|
||||
0000000065 00000 n
|
||||
0000000383 00000 n
|
||||
0000000208 00000 n
|
||||
0000000958 00000 n
|
||||
0000001221 00000 n
|
||||
trailer
|
||||
<< /Info 12 0 R /Root 1 0 R /Size 13 >>
|
||||
startxref
|
||||
Reference in New Issue
Block a user