fast_obj
fast_obj copied to clipboard
Trim trailing whitespaces from mtllib definitions
It seems some obj exporters leave a trailing whitespace after the mtllib
declaration. This commit simply checks and removes trailing whitespaces from that lib path.
Im not sure this is an appropriate solution for the lib as im not sure if this issues is too specific to my situation. Also I did not check if trailing whitespaces can become an issue in other parts.
Nonetheless, somebody else might run into this so I decided to share.