3D-Viewer: only show intersection information while using opengl

This commit is contained in:
Mario Luzeiro 2020-09-04 01:25:49 +01:00 committed by Jon Evans
parent 3f2cada6c6
commit 10676eb926
1 changed files with 3 additions and 3 deletions

View File

@ -675,7 +675,8 @@ void EDA_3D_CANVAS::OnMouseMove( wxMouseEvent &event )
const wxPoint eventPosition = event.GetPosition(); const wxPoint eventPosition = event.GetPosition();
m_camera.SetCurMousePosition( eventPosition ); m_camera.SetCurMousePosition( eventPosition );
if( !event.Dragging() ) if( !event.Dragging() &&
( m_boardAdapter.RenderEngineGet() == RENDER_ENGINE::OPENGL_LEGACY ) )
{ {
STATUSBAR_REPORTER activityReporter( STATUSBAR_REPORTER activityReporter(
m_parentStatusBar, static_cast<int>( EDA_3D_VIEWER_STATUSBAR::STATUS_TEXT ) ); 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_3d_render_ogl_legacy->SetCurrentIntersectedBoardItem( intersectedBoardItem );
m_currentIntersectedBoardItem = intersectedBoardItem; m_currentIntersectedBoardItem = intersectedBoardItem;
if( m_boardAdapter.RenderEngineGet() == RENDER_ENGINE::OPENGL_LEGACY ) Request_refresh();
Request_refresh();
} }
switch( intersectedBoardItem->Type() ) switch( intersectedBoardItem->Type() )