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 {
|
for pin in &image.pins {
|
||||||
let pin_name = format!("{}-{}", place.name, pin.id);
|
let pin_name = format!("{}-{}", place.name, pin.id);
|
||||||
|
let net = pin_nets.get(&pin_name).copied();
|
||||||
let Some(net) = pin_nets.get(&pin_name).copied() else {
|
|
||||||
continue;
|
|
||||||
};
|
|
||||||
|
|
||||||
let pin_id = board.ensure_named_pin(pin_name.clone());
|
let pin_id = board.ensure_named_pin(pin_name.clone());
|
||||||
let padstack = dsn.pcb.library.find_padstack_by_name(&pin.name).unwrap();
|
let padstack = dsn.pcb.library.find_padstack_by_name(&pin.name).unwrap();
|
||||||
|
|
@ -177,7 +174,7 @@ impl Board {
|
||||||
pin.point_with_rotation(),
|
pin.point_with_rotation(),
|
||||||
circle.diameter / 2.0,
|
circle.diameter / 2.0,
|
||||||
layer,
|
layer,
|
||||||
Some(net),
|
net,
|
||||||
Some(component_id),
|
Some(component_id),
|
||||||
Some(pin_id),
|
Some(pin_id),
|
||||||
!place_side_is_front,
|
!place_side_is_front,
|
||||||
|
|
@ -195,7 +192,7 @@ impl Board {
|
||||||
rect.x2,
|
rect.x2,
|
||||||
rect.y2,
|
rect.y2,
|
||||||
layer,
|
layer,
|
||||||
Some(net),
|
net,
|
||||||
Some(component_id),
|
Some(component_id),
|
||||||
Some(pin_id),
|
Some(pin_id),
|
||||||
!place_side_is_front,
|
!place_side_is_front,
|
||||||
|
|
@ -211,7 +208,7 @@ impl Board {
|
||||||
&path.coords,
|
&path.coords,
|
||||||
path.width,
|
path.width,
|
||||||
layer,
|
layer,
|
||||||
Some(net),
|
net,
|
||||||
Some(component_id),
|
Some(component_id),
|
||||||
Some(pin_id),
|
Some(pin_id),
|
||||||
!place_side_is_front,
|
!place_side_is_front,
|
||||||
|
|
@ -227,7 +224,7 @@ impl Board {
|
||||||
&polygon.coords,
|
&polygon.coords,
|
||||||
polygon.width,
|
polygon.width,
|
||||||
layer,
|
layer,
|
||||||
Some(net),
|
net,
|
||||||
Some(component_id),
|
Some(component_id),
|
||||||
Some(pin_id),
|
Some(pin_id),
|
||||||
!place_side_is_front,
|
!place_side_is_front,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue