- replaced G.{edve,eded,edvl} with G.editMesh, atm just a structure to
[blender.git] / source / blender / blenkernel / intern / object.c
index 9f3f63ba478ec0c647de254007945f90bd4cc296..ffc8dcd43626619cb5605d14f04d59d456adcbee 100644 (file)
@@ -1024,6 +1024,7 @@ void ob_parlimb(Object *ob, Object *par, float mat[][4])
 
 void give_parvert(Object *par, int nr, float *vec)
 {
+       EditMesh *em = G.editMesh;
        Mesh *me;
        EditVert *eve;
 /*     extern ListBase editNurb; already in bad lev calls */
@@ -1042,7 +1043,7 @@ void give_parvert(Object *par, int nr, float *vec)
                        if(nr >= G.totvert) nr= 0;
 
                        count= 0;
-                       eve= G.edve.first;
+                       eve= em->verts.first;
                        while(eve) {
                                if(count==nr) {
                                        memcpy(vec, eve->co, 12);