Postprocessing: Fix endless loop (#5605)
- closes https://github.com/assimp/assimp/issues/5603pull/5606/head
parent
83d7216726
commit
43634b8b27
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue