a small fix
authorVitaly Ovchinnikov <vitaly.ovchinnikov@gmail.com>
Sun, 13 Dec 2015 10:10:31 +0000 (23:10 +1300)
committerVitaly Ovchinnikov <vitaly.ovchinnikov@gmail.com>
Sun, 13 Dec 2015 10:10:31 +0000 (23:10 +1300)
code/ObjFileParser.cpp

index 4d8b20c..cc898f2 100644 (file)
@@ -499,7 +499,7 @@ void ObjFileParser::getMaterialDesc()
         }
 
         if (needsNewMesh(strName))
-            createMesh();
+            createMesh(strName);
 
         m_pModel->m_pCurrentMesh->m_uiMaterialIndex = getMaterialIndex(strName);
     }