yaqwsx / Pinion

Generate interactive and nice-looking diagrams for your PCBs!
https://yaqwsx.github.io/Pinion/
MIT License
427 stars 19 forks source link

Templated libs sometimes rotated #16

Open dzarda opened 3 years ago

dzarda commented 3 years ago

Going through the create_template.py -> --libs routine I obtain the footprint images. But in some instances they are incorrectly rotated. Don't know if that's due to create_template.py or the import.

Also some footprints are visible from both sides while others are not. I suppose that depends on what layers are used.

obrazek

obrazek

dzarda commented 3 years ago

I'm pretty sure it originates from create_template.py and its if footprint.GetLayerName() ... Flip() logic

I don't think it works properly (GetLayerName() == pcbnew.B_Cu doesn't seem to evaluate successfully)