- replaced G.{edve,eded,edvl} with G.editMesh, atm just a structure to
[blender.git] / source / blender / src / buttons_object.c
index 0155371c44cbba969be2d3a1d5083e0459d054f2..7a50003af9638c9fdc56487c97482b3ea5e976d2 100644 (file)
@@ -932,6 +932,7 @@ extern ListBase editNurb;
 
 void do_common_editbuts(unsigned short event) // old name, is a mix of object and editing events.... 
 {
+       EditMesh *em = G.editMesh;
        EditVlak *evl;
        Base *base;
        Object *ob;
@@ -948,7 +949,7 @@ void do_common_editbuts(unsigned short event) // old name, is a mix of object an
        case B_MATWICH:
                if(G.obedit && G.obedit->actcol>0) {
                        if(G.obedit->type == OB_MESH) {
-                               evl= G.edvl.first;
+                               evl= em->faces.first;
                                while(evl) {
                                        if( vlakselectedAND(evl, 1) ) {
                                                if(index== -1) index= evl->mat_nr;
@@ -993,7 +994,7 @@ void do_common_editbuts(unsigned short event) // old name, is a mix of object an
                if(G.obedit && G.obedit->actcol>0) {
                        if(G.obedit->type == OB_MESH) {
                                undo_push_mesh("Assign material index");
-                               evl= G.edvl.first;
+                               evl= em->faces.first;
                                while(evl) {
                                        if( vlakselectedAND(evl, 1) )
                                                evl->mat_nr= G.obedit->actcol-1;
@@ -1105,7 +1106,7 @@ void do_common_editbuts(unsigned short event) // old name, is a mix of object an
        case B_SETSOLID:
                if(G.obedit) {
                        if(G.obedit->type == OB_MESH) {
-                               evl= G.edvl.first;
+                               evl= em->faces.first;
                                if (event == B_SETSMOOTH) undo_push_mesh("Set Smooth");
                                else if (event==B_SETSOLID) undo_push_mesh("Set Solid");
                                while(evl) {