Skip to content

Commit

Permalink
Postprocessing: Fix endless loop (assimp#5605)
Browse files Browse the repository at this point in the history
- closes assimp#5603
  • Loading branch information
kimkulling authored May 31, 2024
1 parent 83d7216 commit 43634b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/PostProcessing/TextureTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ void TextureTransformStep::Execute( aiScene* pScene) {
cnt = 0;
for (it = trafo.begin();it != trafo.end(); ++it,++cnt) {
if ((*it).lockedPos != AI_TT_UV_IDX_LOCK_NONE && (*it).lockedPos != cnt) {
it2 = trafo.begin();unsigned int t = 0;
while (t != (*it).lockedPos)
it2 = trafo.begin();
while ((*it2).lockedPos != (*it).lockedPos)
++it2;

if ((*it2).lockedPos != AI_TT_UV_IDX_LOCK_NONE) {
Expand Down

0 comments on commit 43634b8

Please sign in to comment.