[PcbDraw][KiCad 5] Disable tolerance look-up
- No properties in footprints
This commit is contained in:
parent
05105cdc9a
commit
c94b03042c
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue