Skip to content

Commit

Permalink
fix mesh-name error.
Browse files Browse the repository at this point in the history
  • Loading branch information
copycd authored and kimkulling committed Nov 15, 2023
1 parent f0e7448 commit 8648c2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/AssetLib/Obj/ObjFileParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8648c2a

Please sign in to comment.