diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-09 11:06:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-09 11:06:06 +0400 |
commit | d5953568c8b3ce1980c4cd872251042c72ac07e9 (patch) | |
tree | eec6f202ec31fb274f918ca5e88006f5fa57e982 /source/blender/editors/mesh | |
parent | f5bb4635c6d023775689450c453cb76f917f2ee3 (diff) |
use 'const float[3]' for derived mesh callback args.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_bvh.c | 4 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_bvh.c b/source/blender/editors/mesh/editmesh_bvh.c index 37c4897cede..f9c673010f3 100644 --- a/source/blender/editors/mesh/editmesh_bvh.c +++ b/source/blender/editors/mesh/editmesh_bvh.c @@ -69,8 +69,8 @@ typedef struct BMBVHTree { Scene *scene; } BMBVHTree; -static void cage_mapped_verts_callback(void *userData, int index, float *co, - float *UNUSED(no_f), short *UNUSED(no_s)) +static void cage_mapped_verts_callback(void *userData, int index, const float co[3], + const float UNUSED(no_f[3]), const short UNUSED(no_s[3])) { void **data = userData; BMEditMesh *em = data[0]; diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index a7754b37f22..bba1e870b1f 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -2676,7 +2676,8 @@ static void knifetool_exit(bContext *UNUSED(C), wmOperator *op) op->customdata = NULL; } -static void cage_mapped_verts_callback(void *userData, int index, float *co, float *UNUSED(no_f), short *UNUSED(no_s)) +static void cage_mapped_verts_callback(void *userData, int index, const float co[3], + const float UNUSED(no_f[3]), const short UNUSED(no_s[3])) { void **data = userData; BMEditMesh *em = data[0]; |