From 3cd61a2d39c8eb4cebb416e7d3101bfc5d11f6ca Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Tue, 13 Feb 2024 10:14:43 -0500 Subject: [PATCH] PCB: appending boards should not select existing generators --- pcbnew/tools/pcb_control.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/pcb_control.cpp b/pcbnew/tools/pcb_control.cpp index 93361a1dc2..6eb22143f3 100644 --- a/pcbnew/tools/pcb_control.cpp +++ b/pcbnew/tools/pcb_control.cpp @@ -1273,6 +1273,9 @@ int PCB_CONTROL::AppendBoard( PCB_IO& pi, wxString& fileName ) for( ZONE* zone : brd->Zones() ) zone->SetFlags( SKIP_STRUCT ); + for( PCB_GENERATOR* generator : brd->Generators() ) + generator->SetFlags( SKIP_STRUCT ); + std::map oldProperties = brd->GetProperties(); std::map newProperties;