thisistherk / fast_obj

Fast C OBJ parser
MIT License
616 stars 46 forks source link

Trim trailing whitespaces from mtllib definitions #37

Closed mario-deluna closed 1 year ago

mario-deluna commented 2 years ago

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.