code cleanup: rename editmode functions so we have ED_object_editmode_load/enter...
[blender.git] / source / blender / editors / space_outliner / outliner_select.c
index 6fcfb457615d8e8155c27aff886f73b5f26cac87..29f1b3fb5a3b34e4cf21a383b2cd182ca18abe1f 100644 (file)
@@ -237,7 +237,7 @@ static int  tree_element_set_active_object(bContext *C, Scene *scene, SpaceOops
        }
        
        if (ob != scene->obedit)
        }
        
        if (ob != scene->obedit)
-               ED_object_exit_editmode(C, EM_FREEDATA | EM_FREEUNDO | EM_WAITCURSOR | EM_DO_UNDO);
+               ED_object_editmode_exit(C, EM_FREEDATA | EM_FREEUNDO | EM_WAITCURSOR | EM_DO_UNDO);
                
        return 1;
 }
                
        return 1;
 }
@@ -643,7 +643,7 @@ static int tree_element_active_pose(bContext *C, Scene *scene, TreeElement *UNUS
        
        if (set) {
                if (scene->obedit)
        
        if (set) {
                if (scene->obedit)
-                       ED_object_exit_editmode(C, EM_FREEDATA | EM_FREEUNDO | EM_WAITCURSOR | EM_DO_UNDO);
+                       ED_object_editmode_exit(C, EM_FREEDATA | EM_FREEUNDO | EM_WAITCURSOR | EM_DO_UNDO);
                
                if (ob->mode & OB_MODE_POSE)
                        ED_armature_exit_posemode(C, base);
                
                if (ob->mode & OB_MODE_POSE)
                        ED_armature_exit_posemode(C, base);