Skip to content
Snippets Groups Projects
Commit 1bd54ad6 authored by Tazpn's avatar Tazpn
Browse files

Fix iterator problem with skin partition.

parent 33257b5e
No related branches found
No related tags found
No related merge requests found
...@@ -422,9 +422,8 @@ NiSkinPartition::NiSkinPartition(Ref<NiTriBasedGeom> shape, int maxBonesPerParti ...@@ -422,9 +422,8 @@ NiSkinPartition::NiSkinPartition(Ref<NiTriBasedGeom> shape, int maxBonesPerParti
// reduce vertex influences if necessary // reduce vertex influences if necessary
if ( maxBones > maxBonesPerVertex ) if ( maxBones > maxBonesPerVertex )
{ {
vector< BoneWeightList >::iterator it = weights.begin();
int c = 0; int c = 0;
while ( it != weights.end() ) for ( vector< BoneWeightList >::iterator it = weights.begin(); it != weights.end(); ++it )
{ {
BoneWeightList & lst = *it; BoneWeightList & lst = *it;
if ( int(lst.size()) > maxBonesPerVertex ) if ( int(lst.size()) > maxBonesPerVertex )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment