code cleanup: rename editmode functions so we have ED_object_editmode_load/enter...
[blender.git] / source / blender / editors / mesh / mesh_navmesh.c
index d85fc420e14416bf021c50f4e3ccfcd9d92533be..2111b6f34094073818ffb6737353238a8fc9c9a3 100644 (file)
@@ -330,7 +330,7 @@ static Object *createRepresentation(bContext *C, struct recast_polyMesh *pmesh,
                copy_v3_v3(obedit->rot, rot);
        }
 
-       ED_object_enter_editmode(C, EM_DO_UNDO | EM_IGNORE_LAYER);
+       ED_object_editmode_enter(C, EM_DO_UNDO | EM_IGNORE_LAYER);
        em = BMEdit_FromObject(obedit);
 
        if (!createob) {
@@ -416,7 +416,7 @@ static Object *createRepresentation(bContext *C, struct recast_polyMesh *pmesh,
        WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data);
 
 
-       ED_object_exit_editmode(C, EM_FREEDATA); 
+       ED_object_editmode_exit(C, EM_FREEDATA); 
        WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, obedit);
 
        if (createob) {