[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33459] trunk/blender/source/blender/ editors/armature/editarmature.c: own mistake made r33442, was returning the pose channel, rather then its bone.

Campbell Barton ideasman42 at gmail.com
Sat Dec 4 02:11:50 CET 2010


Revision: 33459
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33459
Author:   campbellbarton
Date:     2010-12-04 02:11:50 +0100 (Sat, 04 Dec 2010)

Log Message:
-----------
own mistake made r33442, was returning the pose channel, rather then its bone.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/armature/editarmature.c

Modified: trunk/blender/source/blender/editors/armature/editarmature.c
===================================================================
--- trunk/blender/source/blender/editors/armature/editarmature.c	2010-12-03 23:55:10 UTC (rev 33458)
+++ trunk/blender/source/blender/editors/armature/editarmature.c	2010-12-04 01:11:50 UTC (rev 33459)
@@ -1212,10 +1212,12 @@
 /* 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 */





More information about the Bf-blender-cvs mailing list