-> Active face wasn't getting set properly on editmode exit

Active face was being set for the editmesh instead of the mesh on editmode
exit. Fixed.
This commit is contained in:
Geoffrey Bantle
2007-09-29 05:49:51 +00:00
parent 1ea472a903
commit ae40a1d86e

View File

@@ -1094,6 +1094,7 @@ void load_editMesh(void)
a = 0;
efa= em->faces.first;
i = 0;
me->act_face = -1;
while(efa) {
mface= &((MFace *) me->mface)[i];
@@ -1149,8 +1150,8 @@ void load_editMesh(void)
/* no index '0' at location 3 or 4 */
test_index_face(mface, &me->fdata, i, efa->v4?4:3);
if (a==me->act_face)
EM_set_actFace(efa);
if (EM_get_actFace() == efa)
me->act_face = a;
#ifdef WITH_VERSE
if(efa->vface) {