Skip to content

Commit

Permalink
More robust track checking, for KiKit compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mitxela committed Mar 24, 2023
1 parent 4159d7f commit 15756d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions round_tracks_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def addIntermediateTracks( self, scaling = RADIUS_DEFAULT, netclass = None, nati
viasInNet = []
for t in allTracks:
if t.GetNetCode() == netcode and (not onlySelection or t.IsSelected()):
if type(t) == pcbnew.PCB_VIA:
if t.GetClass() == 'PCB_VIA':
viasInNet.append(t)
else:
tracksInNet.append(t)
Expand Down Expand Up @@ -277,7 +277,7 @@ def addIntermediateTracks( self, scaling = RADIUS_DEFAULT, netclass = None, nati
# if there are any arcs or vias present, skip the intersection entirely
skip = False
for t1 in tracksHere:
if type(t1) != pcbnew.PCB_TRACK:
if t1.GetClass() != 'PCB_TRACK':
skip = True
break

Expand Down

0 comments on commit 15756d1

Please sign in to comment.