Skip to content

Fix Eagle/Fusion unpopulated parts losing silkscreen and holes - #585

Merged
qu1ck merged 1 commit into
openscopeproject:masterfrom
DominikPalo:fix-eagle-unpopulated-drawings
Oct 6, 2026
Merged

qu1ck merged 1 commit into
openscopeproject:masterfrom
DominikPalo:fix-eagle-unpopulated-drawings

Conversation

@DominikPalo

Copy link
Copy Markdown
Contributor

FusionEagleParser._process_footprint intentionally skips documentation-layer drawings (tDocu/bDocu, layers 51/52) for elements with populate="no". It did this with return instead of continue, and the for el in package.iter() loop is the whole function, so the first doc-layer item aborted processing of the entire package for that element.

As a result, for unpopulated parts every silkscreen drawing, dimension-layer wire and <hole> that came after the first tDocu/bDocu item in the package was silently dropped. How much was lost depended on element order in the library package.

This one-word change (return → continue) keeps skipping doc-layer drawings for unpopulated parts and processes the rest of the package normally.

Testing

Test board with one package placed twice, once populated (U1) and once with populate="no" (U2). Package items in order: silkscreen wire, doc-layer wire, silkscreen wire, silkscreen circle, hole.

Element master this PR
U1 (populated) silk: 2 wires + circle, fab: 1 wire, holes: 1 unchanged
U2 (populate="no") silk: first wire only, fab: none, holes: 0 silk: 2 wires + circle, fab: none, holes: 1

🤖 Generated with Claude Code

_process_footprint skips documentation layer drawings for elements with
populate="no", but it did so with return instead of continue. That
aborted the whole package loop at the first tDocu/bDocu item, dropping
every later silkscreen drawing, dimension wire and hole of that element.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qu1ck
qu1ck merged commit 3212163 into openscopeproject:master Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants