Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-18 12:16:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-18 12:16:33 +0400
commit2fe38407803a749e193062aff7ba83120a49ab71 (patch)
treeeaf6c3db1ca9e31c52a015a19723784553132c7b /source/blender/blenkernel/intern/action.c
parent7e6520c08034f007848b75014df00210cc997e03 (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.c5
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;
+ }
}
}