Merge branch 'master' of github.com:sippeangelo/Escape-the-Dawn

Conflicts:
	Escape-the-Dawn/plane.obj
This commit is contained in:
ViktorLjung
2014-03-12 22:42:59 +01:00
+3 -1
View File
@@ -218,7 +218,9 @@ void OBJ::ParseMaterial()
// Texture file // Texture file
// TODO: // TODO:
if (prefix == "map_Ka" || prefix == "map_Kd") { if (prefix == "map_Ka" || prefix == "map_Kd") {
ss >> currentMaterial->TextureFile; std::string textureFile;
ss >> textureFile;
currentMaterial->TextureFile = (m_MaterialPath.branch_path() / textureFile).string();
continue; continue;
} }
} }