fix own error BLI_rctf_cent_x/y were incorrectly returning int's, also quiet some...
[blender.git] / source / blender / editors / mesh / editmesh_bvh.c
index 0b7d396b69648d6a396647840335b4a5da5566b3..c249d764ac16ad691321f3a149225566b414d3e9 100644 (file)
@@ -309,7 +309,7 @@ static void vertsearchcallback(void *userdata, int index, const float *UNUSED(co
        }
 }
 
-BMVert *BMBVH_FindClosestVert(BMBVHTree *tree, const float co[3], float maxdist)
+BMVert *BMBVH_FindClosestVert(BMBVHTree *tree, const float co[3], const float maxdist)
 {
        BVHTreeNearest hit;
 
@@ -325,7 +325,7 @@ BMVert *BMBVH_FindClosestVert(BMBVHTree *tree, const float co[3], float maxdist)
                float dist, curdist = tree->maxdist, v[3];
                int cur = 0, i;
 
-               maxdist = tree->maxdist;
+               /* maxdist = tree->maxdist; */  /* UNUSED */
 
                for (i = 0; i < 3; i++) {
                        sub_v3_v3v3(v, hit.co, ls[i]->v->co);