diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-23 04:53:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-23 05:03:11 +0300 |
commit | 232049dd9408e15d2082181e60ddd775b375ff19 (patch) | |
tree | 445988faa416644cfb0d210d864fb908e69d4f77 /source/blender/editors/object | |
parent | 30582c59ccd00fc5c3221540c078947d25fc1bfd (diff) |
Armature: use BKE_armature_transform when applying transformation
Keep ED_armature_transform for RNA Armature.transform
since it operates on edit-bones in edit-mode.
Rename ED_armature_transform_bones to ED_armature_edit_transform
since it wasn't obviously an edit-mode function.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_transform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index 9b39c5b2a88..76a45f219fe 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -768,7 +768,8 @@ static int apply_objects_internal(bContext *C, BKE_mesh_calc_normals(me); } else if (ob->type == OB_ARMATURE) { - ED_armature_transform_apply(bmain, ob, mat, do_props); + bArmature *arm = ob->data; + BKE_armature_transform(arm, mat, do_props); } else if (ob->type == OB_LATTICE) { Lattice *lt = ob->data; |