Commit 6107b648 authored by Anakin's avatar Anakin

now every model is painted with it's own texture

parent ee8989b0
......@@ -364,7 +364,7 @@ void OpenGLController::loadMsh(const char * path)
while (tempPath.back() != '/' && tempPath.back() != '\\')
tempPath.pop_back();
TextureTGA tempTex(std::string(tempPath + vModels.front()->texture).c_str());
TextureTGA tempTex(std::string(tempPath + it->texture).c_str());
tempData->alpha = tempTex.hasAlpha();
tempData->width = tempTex.getWidth();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment