Highlight net during inline drag
Keep consistent UX between inline drag and drag started in the router tool itself by highlighting the net being dragged Fixes https://gitlab.com/kicad/code/kicad/issues/9919
This commit is contained in:
parent
329f00acdc
commit
77fbb495f2
|
@ -1731,6 +1731,9 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
p = snapToItem( startItem, p0 );
|
p = snapToItem( startItem, p0 );
|
||||||
m_startItem = startItem;
|
m_startItem = startItem;
|
||||||
|
|
||||||
|
if( m_startItem && m_startItem->Net() > 0 )
|
||||||
|
highlightNet( true, m_startItem->Net() );
|
||||||
}
|
}
|
||||||
else if( footprint )
|
else if( footprint )
|
||||||
{
|
{
|
||||||
|
@ -1934,6 +1937,7 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
|
||||||
controls()->SetAutoPan( false );
|
controls()->SetAutoPan( false );
|
||||||
controls()->ForceCursorPosition( false );
|
controls()->ForceCursorPosition( false );
|
||||||
frame()->UndoRedoBlock( false );
|
frame()->UndoRedoBlock( false );
|
||||||
|
highlightNet( false );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue