use armature active bone as a pointer rather then a flag for each bone that needs...
[blender.git] / source / blender / blenkernel / intern / action.c
index 2dec76d1b6b86bf358e3f3826fe2c0022136588f..2505a3a70ac45008fada90008648a2acd04f2032 100644 (file)
@@ -471,7 +471,7 @@ bPoseChannel *get_active_posechannel (Object *ob)
        
        /* find active */
        for (pchan= ob->pose->chanbase.first; pchan; pchan= pchan->next) {
-               if ((pchan->bone) && (pchan->bone->flag & BONE_ACTIVE) && (pchan->bone->layer & arm->layer))
+               if ((pchan->bone) && (pchan->bone == arm->act_bone) && (pchan->bone->layer & arm->layer))
                        return pchan;
        }