Adapted out_position to KiCad v6.
- Now the P&P position is returned by GetPosition, not GetCenter
This commit is contained in:
parent
cf3720ccaa
commit
5d1ecfbae4
|
|
@ -254,7 +254,10 @@ class PositionOptions(VariantOptions):
|
|||
rotation = m.GetOrientationDegrees()
|
||||
# If passed check the position options
|
||||
if (self.only_smd and is_pure_smd(m)) or (not self.only_smd and is_not_virtual(m)):
|
||||
center = m.GetCenter()
|
||||
if GS.ki5():
|
||||
center = m.GetCenter()
|
||||
else:
|
||||
center = m.GetPosition()
|
||||
# KiCad: PLACE_FILE_EXPORTER::GenPositionData() in export_footprints_placefile.cpp
|
||||
row = []
|
||||
for k in self.columns:
|
||||
|
|
|
|||
Loading…
Reference in New Issue