mirror of https://codeberg.org/topola/topola.git
Don't skip pins without net in Specctra import
This commit is contained in:
parent
df5a9b57ec
commit
a6d1fe7025
|
|
@ -159,10 +159,7 @@ impl Board {
|
|||
|
||||
for pin in &image.pins {
|
||||
let pin_name = format!("{}-{}", place.name, pin.id);
|
||||
|
||||
let Some(net) = pin_nets.get(&pin_name).copied() else {
|
||||
continue;
|
||||
};
|
||||
let net = pin_nets.get(&pin_name).copied();
|
||||
|
||||
let pin_id = board.ensure_named_pin(pin_name.clone());
|
||||
let padstack = dsn.pcb.library.find_padstack_by_name(&pin.name).unwrap();
|
||||
|
|
@ -177,7 +174,7 @@ impl Board {
|
|||
pin.point_with_rotation(),
|
||||
circle.diameter / 2.0,
|
||||
layer,
|
||||
Some(net),
|
||||
net,
|
||||
Some(component_id),
|
||||
Some(pin_id),
|
||||
!place_side_is_front,
|
||||
|
|
@ -195,7 +192,7 @@ impl Board {
|
|||
rect.x2,
|
||||
rect.y2,
|
||||
layer,
|
||||
Some(net),
|
||||
net,
|
||||
Some(component_id),
|
||||
Some(pin_id),
|
||||
!place_side_is_front,
|
||||
|
|
@ -211,7 +208,7 @@ impl Board {
|
|||
&path.coords,
|
||||
path.width,
|
||||
layer,
|
||||
Some(net),
|
||||
net,
|
||||
Some(component_id),
|
||||
Some(pin_id),
|
||||
!place_side_is_front,
|
||||
|
|
@ -227,7 +224,7 @@ impl Board {
|
|||
&polygon.coords,
|
||||
polygon.width,
|
||||
layer,
|
||||
Some(net),
|
||||
net,
|
||||
Some(component_id),
|
||||
Some(pin_id),
|
||||
!place_side_is_front,
|
||||
|
|
|
|||
Loading…
Reference in New Issue