Postprocessing: Fix endless loop (#5605)

- closes https://github.com/assimp/assimp/issues/5603
pull/5606/head
Kim Kulling 2024-05-31 09:36:14 +02:00 committed by GitHub
parent 83d7216726
commit 43634b8b27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -390,8 +390,8 @@ void TextureTransformStep::Execute( aiScene* pScene) {
cnt = 0; cnt = 0;
for (it = trafo.begin();it != trafo.end(); ++it,++cnt) { for (it = trafo.begin();it != trafo.end(); ++it,++cnt) {
if ((*it).lockedPos != AI_TT_UV_IDX_LOCK_NONE && (*it).lockedPos != cnt) { if ((*it).lockedPos != AI_TT_UV_IDX_LOCK_NONE && (*it).lockedPos != cnt) {
it2 = trafo.begin();unsigned int t = 0; it2 = trafo.begin();
while (t != (*it).lockedPos) while ((*it2).lockedPos != (*it).lockedPos)
++it2; ++it2;
if ((*it2).lockedPos != AI_TT_UV_IDX_LOCK_NONE) { if ((*it2).lockedPos != AI_TT_UV_IDX_LOCK_NONE) {