[PcbDraw][KiCad 5] Disable tolerance look-up

- No properties in footprints
This commit is contained in:
Salvador E. Tropea 2023-03-21 06:53:09 -03:00
parent 05105cdc9a
commit c94b03042c
1 changed files with 6 additions and 5 deletions

View File

@ -1092,11 +1092,12 @@ class PcbPlotter():
lib = str(footprint.GetFPID().GetLibNickname()).strip()
name = str(footprint.GetFPID().GetLibItemName()).strip()
value = footprint.GetValue().strip()
# Look for a tolerance in the properties
prop = footprint.GetProperties()
tol = prop.get('tol', prop.get('tolerance', None))
if tol:
value = value+' '+tol
if not LEGACY_KICAD:
# Look for a tolerance in the properties
prop = footprint.GetProperties()
tol = prop.get('tol', prop.get('tolerance', None))
if tol:
value = value+' '+tol
ref = footprint.GetReference().strip()
center = footprint.GetPosition()
orient = math.radians(footprint.GetOrientation().AsDegrees())