diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-22 03:36:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-22 03:37:50 +0400 |
commit | f801f8057da824a2306963ea1b10bb5917a267c7 (patch) | |
tree | 1469127b0be03882d697fbf66e79315cd4da8b29 /source/blender/editors/armature/armature_utils.c | |
parent | bd5da19d86e5c490e4945bb4befc50b6eac48a86 (diff) |
fix for active bone not saving in editmode.
Diffstat (limited to 'source/blender/editors/armature/armature_utils.c')
-rw-r--r-- | source/blender/editors/armature/armature_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_utils.c b/source/blender/editors/armature/armature_utils.c index be26ad537fc..7d6b3710a38 100644 --- a/source/blender/editors/armature/armature_utils.c +++ b/source/blender/editors/armature/armature_utils.c @@ -501,6 +501,7 @@ void ED_armature_from_edit(Object *obedit) /* armature bones */ BKE_armature_bonelist_free(&arm->bonebase); + arm->act_bone = NULL; /* remove zero sized bones, this gives unstable restposes */ for (eBone = arm->edbo->first; eBone; eBone = neBone) { @@ -634,7 +635,6 @@ void ED_armature_to_edit(Object *ob) ED_armature_edit_free(ob); arm->edbo = MEM_callocN(sizeof(ListBase), "edbo armature"); arm->act_edbone = make_boneList(arm->edbo, &arm->bonebase, NULL, arm->act_bone); - arm->act_bone = NULL; // BIF_freeTemplates(); /* force template update when entering editmode */ } |