Fix #3064
Assigning a Hook in Mesh editmode to new created vertices crashed on exit editmode.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user