Hook up zone-connection controls in Edit Footprint dialog.
Fixes: lp:1834629 * https://bugs.launchpad.net/kicad/+bug/1834629
This commit is contained in:
parent
3b038feae0
commit
b8fff99e68
|
@ -263,6 +263,15 @@ bool DIALOG_FOOTPRINT_FP_EDITOR::TransferDataToWindow()
|
|||
else
|
||||
m_SolderPasteMarginRatioCtrl->SetValue( msg );
|
||||
|
||||
switch( m_footprint->GetZoneConnection() )
|
||||
{
|
||||
default:
|
||||
case PAD_ZONE_CONN_INHERITED: m_ZoneConnectionChoice->SetSelection( 0 ); break;
|
||||
case PAD_ZONE_CONN_FULL: m_ZoneConnectionChoice->SetSelection( 1 ); break;
|
||||
case PAD_ZONE_CONN_THERMAL: m_ZoneConnectionChoice->SetSelection( 2 ); break;
|
||||
case PAD_ZONE_CONN_NONE: m_ZoneConnectionChoice->SetSelection( 3 ); break;
|
||||
}
|
||||
|
||||
// 3D Settings
|
||||
|
||||
wxString default_path;
|
||||
|
@ -636,6 +645,15 @@ bool DIALOG_FOOTPRINT_FP_EDITOR::TransferDataFromWindow()
|
|||
|
||||
m_footprint->SetLocalSolderPasteMarginRatio( dtmp / 100 );
|
||||
|
||||
switch( m_ZoneConnectionChoice->GetSelection() )
|
||||
{
|
||||
default:
|
||||
case 0: m_footprint->SetZoneConnection( PAD_ZONE_CONN_INHERITED ); break;
|
||||
case 1: m_footprint->SetZoneConnection( PAD_ZONE_CONN_FULL ); break;
|
||||
case 2: m_footprint->SetZoneConnection( PAD_ZONE_CONN_THERMAL ); break;
|
||||
case 3: m_footprint->SetZoneConnection( PAD_ZONE_CONN_NONE ); break;
|
||||
}
|
||||
|
||||
std::list<MODULE_3D_SETTINGS>* draw3D = &m_footprint->Models();
|
||||
draw3D->clear();
|
||||
draw3D->insert( draw3D->end(), m_shapes3D_list.begin(), m_shapes3D_list.end() );
|
||||
|
|
Loading…
Reference in New Issue