diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-04 04:11:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-04 04:11:50 +0300 |
commit | 60fad4c95588646aa9ee9289b88567ccb0cd72f3 (patch) | |
tree | af7d4d13995692b023f1c438d511784224bb7de2 /source | |
parent | 9dbb31383f424d669a05793bba614684080ac7e0 (diff) |
own mistake made r33442, was returning the pose channel, rather then its bone.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/armature/editarmature.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c index 9260a3a9953..78b78952df4 100644 --- a/source/blender/editors/armature/editarmature.c +++ b/source/blender/editors/armature/editarmature.c @@ -1212,10 +1212,12 @@ void ARMATURE_OT_separate (wmOperatorType *ot) /* only for opengl selection indices */ Bone *get_indexed_bone (Object *ob, int index) { + bPoseChannel *pchan; if(ob->pose==NULL) return NULL; index>>=16; // bone selection codes use left 2 bytes - return BLI_findlink(&ob->pose->chanbase, index); + pchan= BLI_findlink(&ob->pose->chanbase, index); + return pchan ? pchan->bone : NULL; } /* See if there are any selected bones in this buffer */ |