Twinklebear / tobj

Tiny OBJ Loader in Rust
MIT License
233 stars 47 forks source link

Fix map_Ns parsing not to cut off the first character #27

Closed Meiguro closed 4 years ago

Meiguro commented 4 years ago

Hello! Nice module you have there. I thought I'd fix a small error in parsing. It looks like map_Ns parsing truncates the first character since the logic assumes it's as long as map_Bump. I've also added it to the tests so that this can be caught in the future in case the parsing logic changes.

Twinklebear commented 4 years ago

Whoops, thanks for the fix @Meiguro !