From 6107b648f9407cf5f3b0353a2abc2af36cccb5d7 Mon Sep 17 00:00:00 2001 From: Anakin Date: Wed, 9 Nov 2016 17:48:28 +0100 Subject: [PATCH] now every model is painted with it's own texture --- MshViewer/Source/OpenGlController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MshViewer/Source/OpenGlController.cpp b/MshViewer/Source/OpenGlController.cpp index 62ecaac..bee631d 100644 --- a/MshViewer/Source/OpenGlController.cpp +++ b/MshViewer/Source/OpenGlController.cpp @@ -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();