diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-22 15:36:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-22 15:36:56 +0400 |
commit | 04e157304acddd574ec46c068beb33a2b356df68 (patch) | |
tree | 27e059fe3d05043fa333eebee25f2b0f8af837bb /source/blender/editors/armature | |
parent | b07bdf367c8d3eb1a900ef85cec79c694d24afbe (diff) |
- view dolly now quits on pressing escape (if activated from the search menu).
- adding new bones now makes them active.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/editarmature.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c index d5dce320a6b..b31bcc710f4 100644 --- a/source/blender/editors/armature/editarmature.c +++ b/source/blender/editors/armature/editarmature.c @@ -2356,6 +2356,7 @@ EditBone *ED_armature_edit_bone_add(bArmature *arm, const char *name) void add_primitive_bone(Scene *scene, View3D *v3d, RegionView3D *rv3d) { Object *obedit= scene->obedit; // XXX get from context + bArmature *arm= obedit->data; float obmat[3][3], curs[3], viewmat[3][3], totmat[3][3], imat[3][3]; EditBone *bone; @@ -2374,7 +2375,9 @@ void add_primitive_bone(Scene *scene, View3D *v3d, RegionView3D *rv3d) ED_armature_deselect_all(obedit, 0); /* Create a bone */ - bone= ED_armature_edit_bone_add(obedit->data, "Bone"); + bone= ED_armature_edit_bone_add(arm, "Bone"); + + arm->act_edbone= bone; copy_v3_v3(bone->head, curs); |