diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-27 02:21:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-27 02:21:56 +0400 |
commit | 54b64cfd612922054f014460f1c08ec4b0374a3d (patch) | |
tree | 2df8a029ef6deff92da8e67fee92c55a29c11234 /source/blender/editors/mesh | |
parent | eda0f3b1863e2e41b9913e16af82407b63e145bf (diff) |
code cleanup: use const float and define array size
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_add.c b/source/blender/editors/mesh/editmesh_add.c index 60c0ebbc7b3..f9eb8770012 100644 --- a/source/blender/editors/mesh/editmesh_add.c +++ b/source/blender/editors/mesh/editmesh_add.c @@ -55,7 +55,7 @@ /* uses context to figure out transform for primitive */ /* returns standard diameter */ -static float new_primitive_matrix(bContext *C, float *loc, float *rot, float primmat[][4]) +static float new_primitive_matrix(bContext *C, const float loc[3], const float rot[3], float primmat[][4]) { Object *obedit = CTX_data_edit_object(C); View3D *v3d = CTX_wm_view3d(C); @@ -85,7 +85,7 @@ static float new_primitive_matrix(bContext *C, float *loc, float *rot, float pri static void make_prim_init(bContext *C, const char *idname, float *dia, float mat[][4], - int *state, float *loc, float *rot, unsigned int layer) + int *state, const float loc[3], const float rot[3], const unsigned int layer) { Object *obedit = CTX_data_edit_object(C); |