diff --git a/pcbnew/api/api_handler_pcb.cpp b/pcbnew/api/api_handler_pcb.cpp index 871ba78fe8..c1bd46eba4 100644 --- a/pcbnew/api/api_handler_pcb.cpp +++ b/pcbnew/api/api_handler_pcb.cpp @@ -492,7 +492,8 @@ HANDLER_RESULT API_HANDLER_PCB::handleCreateUpdateItemsIntern []( BOARD_ITEM* aChild ) { const_cast( aChild->m_Uuid ) = KIID(); - } ); + }, + RECURSE ); } item->Serialize( newItem );