From a6d1fe7025e585107c874a86184eb7b34a7b0b90 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Thu, 28 May 2026 23:08:44 +0200 Subject: [PATCH] Don't skip pins without net in Specctra import --- topola/src/specctra.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/topola/src/specctra.rs b/topola/src/specctra.rs index 91acd40..2a003a0 100644 --- a/topola/src/specctra.rs +++ b/topola/src/specctra.rs @@ -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,