Update ObjFileParser.cpp
Ensure not checking empty stringskimkulling/fix_gcc-14_issue-5592
parent
30466aaf16
commit
98a18dbd37
|
@ -582,10 +582,12 @@ void ObjFileParser::getMaterialDesc() {
|
|||
skip = true;
|
||||
}
|
||||
|
||||
// If the current mesh has the same material, we simply ignore that 'usemtl' command
|
||||
// If the current mesh has the same material, we will ignore that 'usemtl' command
|
||||
// There is no need to create another object or even mesh here
|
||||
if (m_pModel->mCurrentMaterial && m_pModel->mCurrentMaterial->MaterialName == aiString(strName)) {
|
||||
skip = true;
|
||||
if (!skip) {
|
||||
if (m_pModel->mCurrentMaterial && m_pModel->mCurrentMaterial->MaterialName == aiString(strName)) {
|
||||
skip = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!skip) {
|
||||
|
|
Loading…
Reference in New Issue