Merge pull request #4806 from naota29/master

Updated DirectX Loader to assign appropriate material index in ConvertMaterials Function
pull/4786/head
Kim Kulling 2023-05-22 09:48:26 +02:00 committed by GitHub
commit 0e06a5f945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ void XFileImporter::ConvertMaterials( aiScene* pScene, std::vector<XFile::Materi
aiString name;
pScene->mMaterials[b]->Get( AI_MATKEY_NAME, name);
if( strcmp( name.C_Str(), oldMat.mName.data()) == 0 ) {
oldMat.sceneIndex = a;
oldMat.sceneIndex = b;
break;
}
}