now every model is painted with it's own texture
This commit is contained in:
parent
ee8989b098
commit
6107b648f9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue