Browse Source

Fix unknown write in Assimp::ObjFileMtlImporter::getFloatValue

Alex 2 years ago
parent
commit
3838a8aaf8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      code/AssetLib/Obj/ObjFileMtlImporter.cpp

+ 2 - 2
code/AssetLib/Obj/ObjFileMtlImporter.cpp

@@ -252,9 +252,9 @@ void ObjFileMtlImporter::load() {
             case 'a': // Anisotropy
             {
                 ++m_DataIt;
-                getFloatValue(m_pModel->mCurrentMaterial->anisotropy);
                 if (m_pModel->mCurrentMaterial != nullptr)
-                    m_DataIt = skipLine<DataArrayIt>(m_DataIt, m_DataItEnd, m_uiLine);
+                    getFloatValue(m_pModel->mCurrentMaterial->anisotropy);
+                m_DataIt = skipLine<DataArrayIt>(m_DataIt, m_DataItEnd, m_uiLine);
             } break;
 
             default: {