fix load mtl

This commit is contained in:
yangxiao 2015-01-29 17:54:22 +08:00
parent 220b34d105
commit 3eeeaf051f
1 changed files with 1 additions and 1 deletions

View File

@ -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;