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>2019-09-14 01:10:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-14 01:12:53 +0300
commit0547a7753643f45861306542857d97215ecb2c4f (patch)
tree1faad834721f7f13d4a0756bd80607963386fccd /source/blender/editors/object
parentd30ec73d763ed01795100ec5d3a0ef9dc8521f7b (diff)
Cleanup: use const args, variables
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_transform.c2
-rw-r--r--source/blender/editors/object/object_vgroup.c4
-rw-r--r--source/blender/editors/object/object_warp.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c
index 9b5342fc797..1cd16b1b0bf 100644
--- a/source/blender/editors/object/object_transform.c
+++ b/source/blender/editors/object/object_transform.c
@@ -1679,7 +1679,7 @@ static void object_apply_location(Object *ob, const float loc[3])
}
static void object_orient_to_location(Object *ob,
- float rot_orig[3][3],
+ const float rot_orig[3][3],
const float axis[3],
const float location[3])
{
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c
index ce385b12608..d703cdfecb3 100644
--- a/source/blender/editors/object/object_vgroup.c
+++ b/source/blender/editors/object/object_vgroup.c
@@ -1319,8 +1319,8 @@ static void moveCloserToDistanceFromPlane(Depsgraph *depsgraph,
Object *ob,
Mesh *me,
int index,
- float norm[3],
- float coord[3],
+ const float norm[3],
+ const float coord[3],
float d,
float distToBe,
float strength,
diff --git a/source/blender/editors/object/object_warp.c b/source/blender/editors/object/object_warp.c
index 3a089acb330..836e38e3676 100644
--- a/source/blender/editors/object/object_warp.c
+++ b/source/blender/editors/object/object_warp.c
@@ -43,7 +43,7 @@
static void object_warp_calc_view_matrix(float r_mat_view[4][4],
float r_center_view[3],
Object *obedit,
- float viewmat[4][4],
+ const float viewmat[4][4],
const float center[3],
const float offset_angle)
{
@@ -62,7 +62,7 @@ static void object_warp_calc_view_matrix(float r_mat_view[4][4],
}
static void object_warp_transverts_minmax_x(TransVertStore *tvs,
- float mat_view[4][4],
+ const float mat_view[4][4],
const float center_view[3],
float *r_min,
float *r_max)
@@ -90,7 +90,7 @@ static void object_warp_transverts_minmax_x(TransVertStore *tvs,
}
static void object_warp_transverts(TransVertStore *tvs,
- float mat_view[4][4],
+ const float mat_view[4][4],
const float center_view[3],
const float angle_,
const float min,