Don't snap synthetic priming event.
We need to let the consumer of the event do snapping (so that, for instance, it can also snap to tracks, pads, etc.) Fixes https://gitlab.com/kicad/code/kicad/issues/4365
This commit is contained in:
parent
6417015b8a
commit
bd63c018c9
|
@ -1159,11 +1159,10 @@ int ROUTER_TOOL::MainLoop( const TOOL_EVENT& aEvent )
|
|||
ctls->ShowCursor( true );
|
||||
ctls->ForceCursorPosition( false );
|
||||
m_cancelled = false;
|
||||
m_startSnapPoint = ctls->GetCursorPosition();
|
||||
|
||||
// Prime the pump
|
||||
if( aEvent.HasPosition() )
|
||||
m_toolMgr->PrimeTool( m_startSnapPoint );
|
||||
m_toolMgr->PrimeTool( ctls->GetCursorPosition( false ) );
|
||||
|
||||
auto setCursor =
|
||||
[&]()
|
||||
|
|
Loading…
Reference in New Issue