Snap to footprint origin when dragging

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6633
This commit is contained in:
Jon Evans 2020-12-20 15:15:48 -05:00
parent 81ce1a07ee
commit e8f38e3c18
1 changed files with 4 additions and 0 deletions

View File

@ -1516,6 +1516,10 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
p = snapToItem( startItem, p0 ); p = snapToItem( startItem, p0 );
m_startItem = startItem; m_startItem = startItem;
} }
else if( footprint )
{
p = footprint->GetPosition();
}
int dragMode = aEvent.Parameter<int64_t> (); int dragMode = aEvent.Parameter<int64_t> ();