Adapted out_position to KiCad v6.

- Now the P&P position is returned by GetPosition, not GetCenter
This commit is contained in:
Diego Capusotto 2021-12-17 18:22:49 -03:00
parent cf3720ccaa
commit 5d1ecfbae4
1 changed files with 4 additions and 1 deletions

View File

@ -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: