Assigning a Hook in Mesh editmode to new created vertices crashed on
exit editmode.
This commit is contained in:
2005-11-21 17:06:16 +00:00
parent 1568ebcd5f
commit 125eaed808

View File

@@ -1100,12 +1100,15 @@ void load_editMesh(void)
} }
for (i=j=0; i<hmd->totindex; i++) { for (i=j=0; i<hmd->totindex; i++) {
if(hmd->indexar[i] < ototvert) {
eve = vertMap[hmd->indexar[i]]; eve = vertMap[hmd->indexar[i]];
if (eve) { if (eve) {
hmd->indexar[j++] = (long) eve->vn; hmd->indexar[j++] = (long) eve->vn;
} }
} }
else j++;
}
hmd->totindex = j; hmd->totindex = j;
} }