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:
authorCampbell Barton <ideasman42@gmail.com>2020-03-15 13:51:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-15 13:51:22 +0300
commitecfb89280ed9d047783f5ff003eec29b02cba9c9 (patch)
tree65b24dce420eff772b2c436d2010997c1655ebfd
parent37419bb3f688caca9c292d7c3d5680eb5594bd98 (diff)
Cleanup: use 'r_' prefix for return args
-rw-r--r--source/blender/blenlib/intern/voronoi_2d.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/voronoi_2d.c b/source/blender/blenlib/intern/voronoi_2d.c
index eb718c5e8c6..6bd9a16cd55 100644
--- a/source/blender/blenlib/intern/voronoi_2d.c
+++ b/source/blender/blenlib/intern/voronoi_2d.c
@@ -766,24 +766,25 @@ static int voronoi_addTriangulationPoint(const float coord[2],
return (*triangulated_points_total) - 1;
}
-static void voronoi_addTriangle(int v1, int v2, int v3, int (**triangles)[3], int *triangles_total)
+static void voronoi_addTriangle(
+ int v1, int v2, int v3, int (**r_triangles)[3], int *r_triangles_total)
{
int *triangle;
- if (*triangles) {
- *triangles = MEM_reallocN(*triangles, sizeof(int[3]) * (*triangles_total + 1));
+ if (*r_triangles) {
+ *r_triangles = MEM_reallocN(*r_triangles, sizeof(int[3]) * (*r_triangles_total + 1));
}
else {
- *triangles = MEM_callocN(sizeof(int[3]), "trianglulation triangles");
+ *r_triangles = MEM_callocN(sizeof(int[3]), "trianglulation triangles");
}
- triangle = (int *)&(*triangles)[(*triangles_total)];
+ triangle = (int *)&(*r_triangles)[(*r_triangles_total)];
triangle[0] = v1;
triangle[1] = v2;
triangle[2] = v3;
- (*triangles_total)++;
+ (*r_triangles_total)++;
}
void BLI_voronoi_triangulate(const VoronoiSite *sites,