From 86590b90aa78c7087a588275030a4f1490e37297 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 19 Sep 2019 13:32:36 +1000 Subject: Cleanup: use uint,ushort,uchar for modifiers --- source/blender/modifiers/intern/MOD_weightvgproximity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/modifiers/intern/MOD_weightvgproximity.c') diff --git a/source/blender/modifiers/intern/MOD_weightvgproximity.c b/source/blender/modifiers/intern/MOD_weightvgproximity.c index 95b15b4a924..7e23289433f 100644 --- a/source/blender/modifiers/intern/MOD_weightvgproximity.c +++ b/source/blender/modifiers/intern/MOD_weightvgproximity.c @@ -215,7 +215,7 @@ static void get_vert2ob_distance( { /* Vertex and ref object coordinates. */ float v_wco[3]; - unsigned int i = numVerts; + uint i = numVerts; while (i-- > 0) { /* Get world-coordinates of the vertex (constraints and anim included). */ @@ -241,7 +241,7 @@ static void do_map( Object *ob, float *weights, const int nidx, const float min_d, const float max_d, short mode) { const float range_inv = 1.0f / (max_d - min_d); /* invert since multiplication is faster */ - unsigned int i = nidx; + uint i = nidx; if (max_d == min_d) { while (i-- > 0) { weights[i] = (weights[i] >= max_d) ? 1.0f : 0.0f; /* "Step" behavior... */ -- cgit v1.2.3