diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-20 17:07:38 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-20 17:07:38 +0300 |
commit | 163be42a9661741757325039909ba81f0701b248 (patch) | |
tree | bc1ffbf573d7aa789af0e81fe7f8097d53ff1d56 | |
parent | 5c632ced53f68a096cd92eaa98c785bca1942832 (diff) |
Cleanup: Use more const qualifiers
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index 66106a97566..ae28655bcfe 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -854,10 +854,10 @@ static void pchan_b_bone_defmats(bPoseChannel *pchan, bPoseChanDeform *pdef_info } } -static void b_bone_deform(bPoseChanDeform *pdef_info, Bone *bone, float co[3], DualQuat *dq, float defmat[3][3]) +static void b_bone_deform(const bPoseChanDeform *pdef_info, Bone *bone, float co[3], DualQuat *dq, float defmat[3][3]) { - Mat4 *b_bone = pdef_info->b_bone_mats; - float (*mat)[4] = b_bone[0].mat; + const Mat4 *b_bone = pdef_info->b_bone_mats; + const float (*mat)[4] = b_bone[0].mat; float segment, y; int a; @@ -949,7 +949,7 @@ static void pchan_deform_mat_add(bPoseChannel *pchan, float weight, float bbonem add_m3_m3m3(mat, mat, wmat); } -static float dist_bone_deform(bPoseChannel *pchan, bPoseChanDeform *pdef_info, float vec[3], DualQuat *dq, +static float dist_bone_deform(bPoseChannel *pchan, const bPoseChanDeform *pdef_info, float vec[3], DualQuat *dq, float mat[3][3], const float co[3]) { Bone *bone = pchan->bone; @@ -996,7 +996,8 @@ static float dist_bone_deform(bPoseChannel *pchan, bPoseChanDeform *pdef_info, f return contrib; } -static void pchan_bone_deform(bPoseChannel *pchan, bPoseChanDeform *pdef_info, float weight, float vec[3], DualQuat *dq, +static void pchan_bone_deform(bPoseChannel *pchan, const bPoseChanDeform *pdef_info, + float weight, float vec[3], DualQuat *dq, float mat[3][3], const float co[3], float *contrib) { float cop[3], bbonemat[3][3]; |