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:
authorJulian Eisel <eiseljulian@gmail.com>2015-09-04 02:04:37 +0300
committerJulian Eisel <eiseljulian@gmail.com>2015-09-04 02:04:37 +0300
commitef629e0d504ea6b53cf490f0f084d5a0b587bf6b (patch)
treefbd9a87c2164176762811fdc9375b01bbca3ff41 /source/blender/python/mathutils/mathutils_bvhtree.c
parentc3fef001ee926fc183255b623f56da9fc5fcbb73 (diff)
Quiet warnings
We had too many warnings lately... was awaiting that someone would kill them - didn't happen -> goes to my commit ratio! :P
Diffstat (limited to 'source/blender/python/mathutils/mathutils_bvhtree.c')
-rw-r--r--source/blender/python/mathutils/mathutils_bvhtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c b/source/blender/python/mathutils/mathutils_bvhtree.c
index 8a488fdfd08..bf06b889e25 100644
--- a/source/blender/python/mathutils/mathutils_bvhtree.c
+++ b/source/blender/python/mathutils/mathutils_bvhtree.c
@@ -277,7 +277,7 @@ static void py_bvhtree_raycast_cb(void *userdata, int index, const BVHTreeRay *r
{
const PyBVHTree *self = userdata;
- const float (*coords)[3] = self->coords;
+ const float (*coords)[3] = (const float (*)[3])self->coords;
const unsigned int *tri = self->tris[index];
const float *tri_co[3] = {coords[tri[0]], coords[tri[1]], coords[tri[2]]};
float dist;
@@ -306,7 +306,7 @@ static void py_bvhtree_nearest_point_cb(void *userdata, int index, const float c
{
PyBVHTree *self = userdata;
- const float (*coords)[3] = self->coords;
+ const float (*coords)[3] = (const float (*)[3])self->coords;
const unsigned int *tri = self->tris[index];
const float *tri_co[3] = {coords[tri[0]], coords[tri[1]], coords[tri[2]]};
float nearest_tmp[3], dist_sq;