Merge pull request #137 from mixelpixx/fix/pwr-flag-orphan-wire-anchor
Treat PWR_FLAG anchors as connected in orphan-wire detection
This commit is contained in:
@@ -64,7 +64,7 @@ class BoardLayerCommands:
|
||||
# Enable inner copper layers by increasing copper layer count (KiCAD 9.0 API)
|
||||
if position == "inner":
|
||||
current_count = self.board.GetCopperLayerCount()
|
||||
needed_count = 2 + number # F.Cu + B.Cu + inner layers
|
||||
needed_count = 2 + (number or 0) # F.Cu + B.Cu + inner layers
|
||||
if needed_count > current_count:
|
||||
self.board.SetCopperLayerCount(needed_count)
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ def _parse_virtual_connections(
|
||||
if not hasattr(symbol, "property") or not hasattr(symbol.property, "Reference"):
|
||||
continue
|
||||
ref = symbol.property.Reference.value
|
||||
if not ref.startswith("#PWR"):
|
||||
if not (ref.startswith("#PWR") or ref.startswith("#FLG")):
|
||||
continue
|
||||
if ref.startswith("_TEMPLATE"):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user