Compare commits
1 Commits
master
...
kimkulling
Author | SHA1 | Date |
---|---|---|
Kim Kulling | 98a18dbd37 |
|
@ -582,11 +582,13 @@ void ObjFileParser::getMaterialDesc() {
|
||||||
skip = true;
|
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
|
// There is no need to create another object or even mesh here
|
||||||
|
if (!skip) {
|
||||||
if (m_pModel->mCurrentMaterial && m_pModel->mCurrentMaterial->MaterialName == aiString(strName)) {
|
if (m_pModel->mCurrentMaterial && m_pModel->mCurrentMaterial->MaterialName == aiString(strName)) {
|
||||||
skip = true;
|
skip = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!skip) {
|
if (!skip) {
|
||||||
// Search for material
|
// Search for material
|
||||||
|
|
Loading…
Reference in New Issue