Don't update 3D view on cursor movement

Our rendering pipeline is not set up for this kind of speed,
and this is a blocking operation at the moment.

Note that we will get an update at the end of the move
because OnModify does it.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6819
This commit is contained in:
Jon Evans 2021-01-07 20:40:50 -05:00
parent 61bddd0928
commit 24435df6b0
1 changed files with 0 additions and 8 deletions

View File

@ -403,8 +403,6 @@ int EDIT_TOOL::doMoveSelection( TOOL_EVENT aEvent, bool aPickReference )
{
if( m_dragging && evt->Category() == TC_MOUSE )
{
bool requestRedraw3Dview = false;
VECTOR2I mousePos( controls->GetMousePosition() );
m_cursor = grid.BestSnapAnchor( mousePos, item_layers, sel_items );
@ -437,14 +435,8 @@ int EDIT_TOOL::doMoveSelection( TOOL_EVENT aEvent, bool aPickReference )
// group and not its descendants.
if( !item->GetParent() || !item->GetParent()->IsSelected() )
static_cast<BOARD_ITEM*>( item )->Move( movement );
if( item->Type() == PCB_FOOTPRINT_T )
requestRedraw3Dview = true;
}
if( requestRedraw3Dview )
editFrame->Update3DView( true );
m_toolMgr->PostEvent( EVENTS::SelectedItemsMoved );
}
else if( !m_dragging && !evt->IsAction( &ACTIONS::refreshPreview ) )