MitjaNemec / Kicad_action_plugins

Kicad action plugins
413 stars 62 forks source link

Fix bug with swapped models always having wrl ext #44

Closed qu1ck closed 5 years ago

qu1ck commented 5 years ago

... regardless of what was actually copied over.

For example if footprint only has .stp model the file would be copied over but footprint would still point to non-existent .wrl model.

Also clean up some code repetition and minor typos.

MitjaNemec commented 5 years ago

Thanks for the contribution. And yes there is a a lot of for loops that can be refactored as list comprehensions due to my strong C background.