Properly prefixing name of exproted armature API
authorJoshua Leung <aligorith@gmail.com>
Wed, 27 Feb 2013 23:56:51 +0000 (23:56 +0000)
committerJoshua Leung <aligorith@gmail.com>
Wed, 27 Feb 2013 23:56:51 +0000 (23:56 +0000)
source/blender/editors/armature/armature_edit.c
source/blender/editors/include/ED_armature.h
source/blender/editors/object/object_transform.c

index c09ebebe0eb4a5184326b5f5e4f417597c7e54db..cb2d2dedce6533a699cfb69ee9f2d44539d1f9fe 100644 (file)
@@ -138,7 +138,7 @@ void ED_armature_apply_transform(Object *ob, float mat[4][4])
 
 /* exported for use in editors/object/ */
 /* 0 == do center, 1 == center new, 2 == center cursor */
-void docenter_armature(Scene *scene, Object *ob, float cursor[3], int centermode, int around)
+void ED_armature_origin_set(Scene *scene, Object *ob, float cursor[3], int centermode, int around)
 {
        Object *obedit = scene->obedit; // XXX get from context
        EditBone *ebone;
index 4db79df033e36498c4cc7154712f30ca9800070c..30ac360cab6c07f3a6dd83555af11dabe40b3a2b 100644 (file)
@@ -137,7 +137,7 @@ struct EditBone *ED_armature_edit_bone_add(struct bArmature *arm, const char *na
 void ED_armature_edit_bone_remove(struct bArmature *arm, EditBone *exBone);
 
 void transform_armature_mirror_update(struct Object *obedit);
-void docenter_armature(struct Scene *scene, struct Object *ob, float cursor[3], int centermode, int around);
+void ED_armature_origin_set(struct Scene *scene, struct Object *ob, float cursor[3], int centermode, int around);
 
 void ED_armature_apply_transform(struct Object *ob, float mat[4][4]);
 
index 01dcac2d1b4ca6694a246c806c9e94c93cbdccec..3fa6c301fcba69b06b008374c5885fedd5c070a9 100644 (file)
@@ -871,7 +871,7 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
                                        /* Function to recenter armatures in editarmature.c
                                         * Bone + object locations are handled there.
                                         */
-                                       docenter_armature(scene, ob, cursor, centermode, around);
+                                       ED_armature_origin_set(scene, ob, cursor, centermode, around);
 
                                        tot_change++;
                                        arm->id.flag |= LIB_DOIT;