Fix unknown write in Assimp::ObjFileMtlImporter::getFloatValue

pull/5119/head
Alex 2023-06-02 11:33:54 +00:00
parent 4180b1fd08
commit 496a4bf156
1 changed files with 2 additions and 2 deletions

View File

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