소스 검색

iObjParser: refactorings.

Kim Kulling 9 년 전
부모
커밋
d9017299a8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      code/ObjFileParser.cpp

+ 2 - 2
code/ObjFileParser.cpp

@@ -775,7 +775,7 @@ void ObjFileParser::createMesh( const std::string &meshName )
 
 
 // -------------------------------------------------------------------
 // -------------------------------------------------------------------
 //  Returns true, if a new mesh must be created.
 //  Returns true, if a new mesh must be created.
-bool ObjFileParser::needsNewMesh( const std::string &rMaterialName )
+bool ObjFileParser::needsNewMesh( const std::string &materialName )
 {
 {
     // If no mesh data yet
     // If no mesh data yet
     if(m_pModel->m_pCurrentMesh == 0)
     if(m_pModel->m_pCurrentMesh == 0)
@@ -783,7 +783,7 @@ bool ObjFileParser::needsNewMesh( const std::string &rMaterialName )
         return true;
         return true;
     }
     }
     bool newMat = false;
     bool newMat = false;
-    int matIdx = getMaterialIndex( rMaterialName );
+    int matIdx = getMaterialIndex( materialName );
     int curMatIdx = m_pModel->m_pCurrentMesh->m_uiMaterialIndex;
     int curMatIdx = m_pModel->m_pCurrentMesh->m_uiMaterialIndex;
     if ( curMatIdx != int(ObjFile::Mesh::NoMaterial) && curMatIdx != matIdx )
     if ( curMatIdx != int(ObjFile::Mesh::NoMaterial) && curMatIdx != matIdx )
     {
     {