Apply codeRabbit suggested fix(es) from assimp PR #6548 (#6557)

Co-authored-by: tellypresence <info@tellypresence.com>
This commit is contained in:
Steve M
2026-03-06 12:44:08 +01:00
committed by GitHub
co-authored by tellypresence
parent 553fbc1fdb
commit 8a073f7cb4
+3 -4
View File
@@ -682,13 +682,12 @@ namespace Assimp {
face.mIndices[0] = aiTable[0];
face.mIndices[1] = aiTable[1];
face.mIndices[2] = p;
cache.push_back(face);
// every second pass swap the indices.
flip = !flip;
if (flip) {
std::swap(face.mIndices[0], face.mIndices[1]);
}
cache.push_back(face);
// every second pass swap the indices.
flip = !flip;
aiTable[0] = aiTable[1];
aiTable[1] = p;