diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-18 12:16:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-18 12:16:33 +0400 |
commit | 2fe38407803a749e193062aff7ba83120a49ab71 (patch) | |
tree | eaf6c3db1ca9e31c52a015a19723784553132c7b /source/blender/blenkernel/intern/action.c | |
parent | 7e6520c08034f007848b75014df00210cc997e03 (diff) |
2 minor glitches
- removing bone groups didnt set the next one active.
- removing poselib was using int for enum rna property.
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 5b49d9a9841..77f56058a4f 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -831,7 +831,10 @@ void pose_remove_group (Object *ob) /* now, remove it from the pose */ BLI_freelinkN(&pose->agroups, grp); - pose->active_group= 0; + pose->active_group--; + if(pose->active_group < 0 || pose->agroups.first == NULL) { + pose->active_group= 0; + } } } |