[Fixed][PCB_Print] Problems with `hide_excluded: true`

- For components not in the SCH
Fixes #258
This commit is contained in:
Salvador E. Tropea 2022-08-23 07:18:12 -03:00
parent 396d701a0d
commit bc0011470b
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- PCB_Print:
- Problems with filtered/modified PCBs
- Problems with zones on multiple layers (#226)
- Problems with `hide_excluded: true` and components not in the SCH (#258)
- SCH Variants on KiCad 6: Problems with missing values in the title block.
- Report: Converted file wasn't stored at `dir` (#238)
- Datasheet download: Time-outs on some servers expecting modern browsers (#240)

View File

@ -384,7 +384,7 @@ class VariantOptions(BaseOptions):
for m in GS.get_modules_board(board):
ref = m.GetReference()
c = comps_hash.get(ref, None)
if not c.included:
if c is not None and not c.included:
# Remove any graphical item in the *.Fab layers
for gi in m.GraphicalItems():
l_gi = gi.GetLayer()