netlist_exporter_xml: ensure the list of parts is included in netlist.
This is obviously mandatory to build a BOM DIALOG_BOM: generate a full xml netlis. We don't know what is needed by scripts Fixes #12918 https://gitlab.com/kicad/code/kicad/issues/12918
This commit is contained in:
parent
9766351ee6
commit
e5877e0840
|
@ -342,7 +342,7 @@ void DIALOG_BOM::OnRunGenerator( wxCommandEvent& event )
|
|||
#endif
|
||||
|
||||
if( m_parent->ReadyToNetlist( _( "Generating BOM requires a fully annotated schematic." ) ) )
|
||||
m_parent->WriteNetListFile( NET_TYPE_BOM, fullfilename, GNL_OPT_BOM, &reporter );
|
||||
m_parent->WriteNetListFile( NET_TYPE_BOM, fullfilename, GNL_OPT_BOM|GNL_ALL, &reporter );
|
||||
|
||||
m_Messages->SetValue( reportmsg );
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ bool NETLIST_EXPORTER_XML::WriteNetlist( const wxString& aOutFileName, unsigned
|
|||
unsigned aCtl = aNetlistOptions;
|
||||
|
||||
if( aNetlistOptions & GNL_OPT_BOM )
|
||||
aCtl |= ( GNL_SYMBOLS | GNL_HEADER );
|
||||
aCtl |= ( GNL_SYMBOLS | GNL_HEADER | GNL_PARTS );
|
||||
else
|
||||
aCtl |= GNL_ALL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue