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,11 +1100,14 @@ void load_editMesh(void)
} }
for (i=j=0; i<hmd->totindex; i++) { for (i=j=0; i<hmd->totindex; i++) {
eve = vertMap[hmd->indexar[i]]; if(hmd->indexar[i] < ototvert) {
eve = vertMap[hmd->indexar[i]];
if (eve) {
hmd->indexar[j++] = (long) eve->vn; if (eve) {
hmd->indexar[j++] = (long) eve->vn;
}
} }
else j++;
} }
hmd->totindex = j; hmd->totindex = j;