diff --git a/pcbnew/tools/pcbnew_control.cpp b/pcbnew/tools/pcbnew_control.cpp index 64dcc51b1b..5bbf36c56a 100644 --- a/pcbnew/tools/pcbnew_control.cpp +++ b/pcbnew/tools/pcbnew_control.cpp @@ -837,6 +837,14 @@ int PCBNEW_CONTROL::placeBoardItems( std::vector& aItems, bool aIsN for( BOARD_ITEM* item : aItems ) { + if( aIsNew ) + { + const_cast( item->m_Uuid ) = KIID(); + + if( item->Type() == PCB_MODULE_T ) + static_cast( item )->SetPath( KIID_PATH() ); + } + item->SetSelected(); selection.Add( item );