mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3.02k stars 583 forks source link

Fix broken solid name in ASCII STL mesh export #2196

Closed lcavegliacurtil closed 7 months ago

lcavegliacurtil commented 7 months ago

Exporting a mesh in ASCII STL format results in the placeholder {name} to be printed as solid name instead of the name metadata, due to a typo. This PR fixes the typo and introduces a simple unit test.

mikedh commented 7 months ago

Thanks for the fix and test!! I'll also enable RUF027 which appears to catch this typo for the future.