From 10676eb926450be44ba8d603df44c8a1e0520f7a Mon Sep 17 00:00:00 2001 From: Mario Luzeiro <mrluzeiro@ua.pt> Date: Fri, 4 Sep 2020 01:25:49 +0100 Subject: [PATCH] 3D-Viewer: only show intersection information while using opengl --- 3d-viewer/3d_canvas/eda_3d_canvas.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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<int>( 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() )