thisistherk / fast_obj

Fast C OBJ parser
MIT License
632 stars 48 forks source link

Capital vs non-capital #25

Closed Eichenherz closed 3 years ago

Eichenherz commented 3 years ago

https://github.com/thisistherk/fast_obj/blob/e7a99e63a0b9d2c0cef019c78dda0dbaf6b6a3ee/fast_obj.h#L1088 I've encountered in my .mtl the map_Bump ( note the capital letter ). This caused fast_obj not to get the path. I propose this simple fix:

else if (( p[0] == 'b' || p[0] == 'B' )

Cheers !