fix: pass aLayer arg to PAD.GetEffectivePolygon

pcbnew.PAD.GetEffectivePolygon now requires a PCB_LAYER_ID arg
This commit is contained in:
kuwoyuki committed 2025-03-16 14:05:18 +06:00
1 parent bea714e917
commit 489dd77a13
1 file changed
+1 -1
+1 -1
View File
@@ -696,7 +696,7 @@ STEP = '-'
m.SetViaType(VIATYPE_THROUGH)
m.SetDrill(int(self.drill))
m.SetWidth(int(self.size))
if pad.GetEffectivePolygon().Collide(m.GetEffectiveShape()):
if pad.GetEffectivePolygon(pad.GetLayer()).Collide(m.GetEffectiveShape()):
rectangle[x][y] = self.REASON_PAD
except: