bugfix [#24672] Bone.evaluate_envelope() is misleading

fix from Dan Eicher
This commit is contained in:
Campbell Barton 2010-11-17 03:26:50 +00:00
parent d0f7184ab9
commit 02bbce8b6d

@ -51,7 +51,7 @@ void rna_EditBone_align_roll(EditBone *ebo, float *no)
float rna_Bone_do_envelope(Bone *bone, float *vec)
{
float scale = (bone->flag & BONE_MULT_VG_ENV) == BONE_MULT_VG_ENV ? bone->weight : 1.0f;
return distfactor_to_bone(vec, bone->head, bone->tail, bone->rad_head * scale, bone->rad_tail * scale, bone->dist * scale);
return distfactor_to_bone(vec, bone->arm_head, bone->arm_tail, bone->rad_head * scale, bone->rad_tail * scale, bone->dist * scale);
}
#else