diff --git a/3d-viewer/3d_canvas/eda_3d_canvas.cpp b/3d-viewer/3d_canvas/eda_3d_canvas.cpp index ecba8f3a4c..2b1265f4bd 100644 --- a/3d-viewer/3d_canvas/eda_3d_canvas.cpp +++ b/3d-viewer/3d_canvas/eda_3d_canvas.cpp @@ -675,7 +675,8 @@ void EDA_3D_CANVAS::OnMouseMove( wxMouseEvent &event ) const wxPoint eventPosition = event.GetPosition(); m_camera.SetCurMousePosition( eventPosition ); - if( !event.Dragging() ) + if( !event.Dragging() && + ( m_boardAdapter.RenderEngineGet() == RENDER_ENGINE::OPENGL_LEGACY ) ) { STATUSBAR_REPORTER activityReporter( m_parentStatusBar, static_cast( EDA_3D_VIEWER_STATUSBAR::STATUS_TEXT ) ); @@ -691,8 +692,7 @@ void EDA_3D_CANVAS::OnMouseMove( wxMouseEvent &event ) m_3d_render_ogl_legacy->SetCurrentIntersectedBoardItem( intersectedBoardItem ); m_currentIntersectedBoardItem = intersectedBoardItem; - if( m_boardAdapter.RenderEngineGet() == RENDER_ENGINE::OPENGL_LEGACY ) - Request_refresh(); + Request_refresh(); } switch( intersectedBoardItem->Type() )