fix mesh-name error.

pull/5294/head
copycd 2023-10-23 20:55:02 +09:00
parent 945c77d699
commit 34a356ba52
1 changed files with 2 additions and 1 deletions

View File

@ -605,7 +605,8 @@ void ObjFileParser::getMaterialDesc() {
}
if (needsNewMesh(strName)) {
createMesh(strName);
auto newMeshName = m_pModel->mActiveGroup.empty() ? strName : m_pModel->mActiveGroup;
createMesh(newMeshName);
}
m_pModel->mCurrentMesh->m_uiMaterialIndex = getMaterialIndex(strName);