now every model is painted with it's own texture

This commit is contained in:
Anakin 2016-11-09 17:48:28 +01:00
parent ee8989b098
commit 6107b648f9
1 changed files with 1 additions and 1 deletions

View File

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