forked from bartvdbraak/blender
bugfix [#24672] Bone.evaluate_envelope() is misleading
fix from Dan Eicher
This commit is contained in:
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 rna_Bone_do_envelope(Bone *bone, float *vec)
|
||||||
{
|
{
|
||||||
float scale = (bone->flag & BONE_MULT_VG_ENV) == BONE_MULT_VG_ENV ? bone->weight : 1.0f;
|
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
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user