javagl / Obj

A simple Wavefront OBJ file loader
Other
181 stars 38 forks source link

MtlReader wrong parses at least map_Kd tag #12

Closed dementia2029 closed 6 years ago

dementia2029 commented 6 years ago

Version 0.3.0, class MtlReader, line 160-161:

String mapKd = line.substring("map_Kd".length()).trim();
currentMtl.setMapKd(mapKd);

If line is "\tmap_Kd wood.jpg", we will get mapKd String value as a "d wood.jpg". We must also cut "d "

javagl commented 6 years ago

Thanks for reporting this. But this was already fixed via the PR https://github.com/javagl/Obj/pull/6 . It will be part of the next release.

OK to close?

dementia2029 commented 6 years ago

Hi! Sure, you can close this issue. Thank you. p.s. could you tell when the next update will be?