From d06888128c5a645a8815cb86bb4b3dfe1c76f454 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 8 Mar 2011 13:44:34 -0500 Subject: [PATCH] fix full path bug with loading texture files for materials --- WFObj.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WFObj.cc b/WFObj.cc index 68b0ab6..546b743 100644 --- a/WFObj.cc +++ b/WFObj.cc @@ -587,7 +587,7 @@ void WFObj::WFMtl::renderBegin(const string & mtlname, bool doTextureInfo, if (m_obj->m_textureLoader != NULL) { FileLoader::Path path( - basePath(m_path.fullPath + stmts[i][1]), + basePath(m_path.fullPath) + stmts[i][1], stmts[i][1]); GLuint tex = m_obj->m_textureLoader->load(path, *m_obj->m_fileLoader);