[Bf-blender-cvs] [163be42a966] blender2.8: Cleanup: Use more const qualifiers
Sergey Sharybin
noreply at git.blender.org
Tue Nov 20 15:10:24 CET 2018
Commit: 163be42a9661741757325039909ba81f0701b248
Author: Sergey Sharybin
Date: Tue Nov 20 15:07:38 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB163be42a9661741757325039909ba81f0701b248
Cleanup: Use more const qualifiers
===================================================================
M source/blender/blenkernel/intern/armature.c
===================================================================
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];
More information about the Bf-blender-cvs
mailing list