Apply modernize-loop-convert to the simplified loop
parent
1ca44acebc
commit
795c0abcc8
|
@ -242,16 +242,14 @@ void SMDImporter::CreateOutputMeshes() {
|
||||||
|
|
||||||
// collect all faces
|
// collect all faces
|
||||||
iNum = 0;
|
iNum = 0;
|
||||||
for (std::vector<SMD::Face>::const_iterator
|
for (const auto &asTriangle : asTriangles) {
|
||||||
iFace = asTriangles.begin();
|
if (UINT_MAX == asTriangle.iTexture) {
|
||||||
iFace != asTriangles.end(); ++iFace) {
|
aaiFaces[asTriangle.iTexture].push_back( 0 );
|
||||||
if (UINT_MAX == (*iFace).iTexture) {
|
} else if (asTriangle.iTexture >= aszTextures.size()) {
|
||||||
aaiFaces[(*iFace).iTexture].push_back( 0 );
|
|
||||||
} else if ((*iFace).iTexture >= aszTextures.size()) {
|
|
||||||
ASSIMP_LOG_INFO("[SMD/VTA] Material index overflow in face");
|
ASSIMP_LOG_INFO("[SMD/VTA] Material index overflow in face");
|
||||||
aaiFaces[(*iFace).iTexture].push_back((unsigned int)aszTextures.size()-1);
|
aaiFaces[asTriangle.iTexture].push_back((unsigned int)aszTextures.size()-1);
|
||||||
} else {
|
} else {
|
||||||
aaiFaces[(*iFace).iTexture].push_back(iNum);
|
aaiFaces[asTriangle.iTexture].push_back(iNum);
|
||||||
}
|
}
|
||||||
++iNum;
|
++iNum;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue