From 5a362dfeebf0c3be5ba232d714081fcf7e7f46f3 Mon Sep 17 00:00:00 2001 From: Mario Luzeiro Date: Wed, 2 Sep 2020 18:16:36 +0100 Subject: [PATCH] Request redraw of 3D-Viewer when a selection from Schematic is made --- pcbnew/tools/pcb_inspection_tool.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pcbnew/tools/pcb_inspection_tool.cpp b/pcbnew/tools/pcb_inspection_tool.cpp index 90eca0a3db..350d0f2faf 100644 --- a/pcbnew/tools/pcb_inspection_tool.cpp +++ b/pcbnew/tools/pcb_inspection_tool.cpp @@ -490,6 +490,15 @@ int PCB_INSPECTION_TOOL::HighlightItem( const TOOL_EVENT& aEvent ) } m_probingSchToPcb = false; + bool request3DviewRedraw = true; + + if( item ) + if( item->Type() != PCB_MODULE_T ) + request3DviewRedraw = false; + + if( request3DviewRedraw ) + m_frame->Redraw3Dview(); + return 0; }