Fixed missing datasheet data in v6 loader

This commit is contained in:
Diego Capusotto 2021-12-17 14:24:05 -03:00
parent 2c936b8c64
commit 2986740530
1 changed files with 4 additions and 0 deletions

View File

@ -670,6 +670,10 @@ class SchematicComponentV6(SchematicComponent):
parent.fields_lc.add(name_lc)
# Add to the component
comp.add_field(field)
if field.number == 3:
# Reference, Value and Footprint are defined by the instance.
# But datasheet must be transferred from this field.
comp.datasheet = field.value
# PINS...
elif i_type == 'pin':
pin_name = _check_str(i, 1, name + 'pin name')