From 0fdbc5ea48d52fffae02832df418962832cf45a9 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 12 Jan 2026 15:17:25 +0500 Subject: [PATCH] Add "Collect And Embed 3D Models" to Tools menu. --- pcbnew/menubar_pcb_editor.cpp | 3 +++ pcbnew/tools/pcb_actions.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pcbnew/menubar_pcb_editor.cpp b/pcbnew/menubar_pcb_editor.cpp index f932116509..80ed540b5e 100644 --- a/pcbnew/menubar_pcb_editor.cpp +++ b/pcbnew/menubar_pcb_editor.cpp @@ -425,6 +425,9 @@ void PCB_EDIT_FRAME::doReCreateMenuBar() toolsMenu->Add( PCB_ACTIONS::cleanupGraphics ); toolsMenu->Add( PCB_ACTIONS::repairBoard ); + toolsMenu->AppendSeparator(); + toolsMenu->Add( PCB_ACTIONS::collect3DModels ); + toolsMenu->AppendSeparator(); toolsMenu->Add( PCB_ACTIONS::boardReannotate ); update = toolsMenu->Add( ACTIONS::updateSchematicFromPcb ); diff --git a/pcbnew/tools/pcb_actions.cpp b/pcbnew/tools/pcb_actions.cpp index b8722c19d4..bc4e5f4fe6 100644 --- a/pcbnew/tools/pcb_actions.cpp +++ b/pcbnew/tools/pcb_actions.cpp @@ -1077,7 +1077,8 @@ TOOL_ACTION PCB_ACTIONS::collect3DModels( TOOL_ACTION_ARGS() .Name( "pcbnew.EditorControl.collect3DModels" ) .Scope( AS_GLOBAL ) .FriendlyName( _( "Collect And Embed 3D Models" ) ) - .Tooltip( _( "Collect footprint 3D models and embed them into the board" ) ) ); + .Tooltip( _( "Collect footprint 3D models and embed them into the board" ) ) + .Icon( BITMAPS::import3d ) ); // Track & via size control TOOL_ACTION PCB_ACTIONS::trackWidthInc( TOOL_ACTION_ARGS()