Merge pull request #3493 from assimp/issue_3448

closes https://github.com/assimp/assimp/issues/3448
pull/3494/head
Kim Kulling 2020-11-10 12:03:57 +01:00 committed by GitHub
commit 957e468c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -137,10 +137,14 @@ void ObjFileMtlImporter::load() {
} break;
case 'T': {
++m_DataIt;
if (*m_DataIt == 'f') // Material transmission
{
// Material transmission color
if (*m_DataIt == 'f') {
++m_DataIt;
getColorRGBA(&m_pModel->m_pCurrentMaterial->transparent);
} else if (*m_DataIt == 'r') {
// Material transmission alpha value
++m_DataIt;
getFloatValue(m_pModel->m_pCurrentMaterial->alpha);
}
m_DataIt = skipLine<DataArrayIt>(m_DataIt, m_DataItEnd, m_uiLine);
} break;