bugfix [#24907] bone roll z up broken and python script showing correct method to...
[blender.git] / source / blender / makesrna / intern / rna_armature_api.c
index 4c19e66ea019d50a0659414e51ce525f4c28220e..a2b765e99594043405e0b998fa8f320995a72560 100644 (file)
 #include "BLI_blenlib.h"
 #include "BKE_armature.h"
 
-void rna_EditBone_align_roll(EditBone *ebo, float *no)
+void rna_EditBone_align_roll(EditBone *ebo, float no[3])
 {
-       if(!is_zero_v3(no)) {
-               float normal[3];
-               copy_v3_v3(normal, no);
-               normalize_v3(normal);
-               ebo->roll= ED_rollBoneToVector(ebo, normal);
-       }
+       ebo->roll= ED_rollBoneToVector(ebo, no, FALSE);
 }
 
 float rna_Bone_do_envelope(Bone *bone, float *vec)