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>2010-12-04 04:11:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-04 04:11:50 +0300
commit60fad4c95588646aa9ee9289b88567ccb0cd72f3 (patch)
treeaf7d4d13995692b023f1c438d511784224bb7de2 /source/blender/editors/armature
parent9dbb31383f424d669a05793bba614684080ac7e0 (diff)
own mistake made r33442, was returning the pose channel, rather then its bone.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/editarmature.c4
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 */