Replace duplicated trim (#5613)

This commit is contained in:
Kim Kulling
2024-06-11 16:30:49 +02:00
committed by GitHub
parent e963a863ce
commit 75a10fedd0
3 changed files with 2 additions and 18 deletions

View File

@@ -343,7 +343,7 @@ void ObjFileMtlImporter::createMaterial() {
}
}
name = trim_whitespaces(name);
name = ai_trim(name);
std::map<std::string, ObjFile::Material *>::iterator it = m_pModel->mMaterialMap.find(name);
if (m_pModel->mMaterialMap.end() == it) {