OBJ loader correct path for textures

This commit is contained in:
2014-03-12 22:40:54 +01:00
parent 29c364b28f
commit fef9c1f751
+3 -1
View File
@@ -218,7 +218,9 @@ void OBJ::ParseMaterial()
// Texture file
// TODO:
if (prefix == "map_Ka" || prefix == "map_Kd") {
ss >> currentMaterial->TextureFile;
std::string textureFile;
ss >> textureFile;
currentMaterial->TextureFile = (m_MaterialPath.branch_path() / textureFile).string();
continue;
}
}