浏览代码

Postprocessing: Fix endless loop

- closes https://github.com/assimp/assimp/issues/5603
Kim Kulling 1 年之前
父节点
当前提交
fbb232ab4d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      code/PostProcessing/TextureTransform.cpp

+ 2 - 2
code/PostProcessing/TextureTransform.cpp

@@ -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) {