Fix obj .mtl file loading
authorAlberto Taiuti <alberto.taiuti@gmail.com>
Thu, 10 Nov 2016 23:12:36 +0000 (23:12 +0000)
committerAlberto Taiuti <alberto.taiuti@gmail.com>
Thu, 10 Nov 2016 23:12:36 +0000 (23:12 +0000)
commitcf7059f074755566a89dd1220fbbc1928ca19068
tree60b7c59cf66a01cbd5dd75a8a374f2dd10337f51
parent7a578aae4652978986e99ced8648f52b9b614a97
Fix obj .mtl file loading

Fix the obj file loader by adding a new method which allows
a name to be read considering the space in the middle between two
words and use that for parsing the "mtlib" line in the .obj file
parsing method.

Before, the method used in the obj parsing function would have
returned the string "mtlib NAME_OF_MTL" instead of "mtlib" only,
which resulted in the .mtl file being never parsed.
code/ObjFileParser.cpp
code/ObjTools.h