mirror of https://github.com/axmolengine/axmol.git
fix load mtl
This commit is contained in:
parent
220b34d105
commit
3eeeaf051f
|
@ -289,7 +289,7 @@ std::string LoadMtl ( std::map<std::string, ObjLoader::material_t>& material_map
|
|||
filepath = std::string(filename);
|
||||
}
|
||||
|
||||
std::ifstream ifs(filepath.c_str());
|
||||
std::istringstream ifs(FileUtils::getInstance()->getStringFromFile(filepath));
|
||||
if (!ifs)
|
||||
{
|
||||
err << "Cannot open file [" << filepath << "]" << std::endl;
|
||||
|
|
Loading…
Reference in New Issue