Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-25 16:07:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-25 16:07:55 +0400
commite69fdfab301f518eaa6b8a53564d0f6fb92119fc (patch)
tree7282dc5c02c9dd54e2395778bb761f92ebc89d33 /source/blender/makesrna/intern/rna_armature.c
parentb2b0b58fb5ee48fdbbee1d8f19b4051f80880908 (diff)
adjust createSpaceNormalTangent so it can take values from a matrix without having to negate the plane first.
also add ED_armature_ebone_to_mat3/4 since there were quite a few places that did this inline.
Diffstat (limited to 'source/blender/makesrna/intern/rna_armature.c')
-rw-r--r--source/blender/makesrna/intern/rna_armature.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source/blender/makesrna/intern/rna_armature.c b/source/blender/makesrna/intern/rna_armature.c
index fd151ccebb9..a832a8cdf96 100644
--- a/source/blender/makesrna/intern/rna_armature.c
+++ b/source/blender/makesrna/intern/rna_armature.c
@@ -398,16 +398,7 @@ static void rna_EditBone_parent_set(PointerRNA *ptr, PointerRNA value)
static void rna_EditBone_matrix_get(PointerRNA *ptr, float *values)
{
EditBone *ebone = (EditBone *)(ptr->data);
-
- float delta[3], tmat[3][3], mat[4][4];
-
- /* Find the current bone matrix */
- sub_v3_v3v3(delta, ebone->tail, ebone->head);
- vec_roll_to_mat3(delta, ebone->roll, tmat);
- copy_m4_m3(mat, tmat);
- copy_v3_v3(mat[3], ebone->head);
-
- memcpy(values, mat, 16 * sizeof(float));
+ ED_armature_ebone_to_mat4(ebone, (float(*)[4])values);
}
static void rna_Armature_editbone_transform_update(Main *bmain, Scene *scene, PointerRNA *ptr)