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-25 09:58:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-25 09:58:58 +0300
commit2bc791437e3b8e42c1369daf15c72934474b1e73 (patch)
treef2202c3753c8288bea47d3c0edd10bcf01cdf339 /source/blender/blenlib/intern/voronoi_2d.c
parentc3764fe1e80670cd578df7bbc5c37c267e81013a (diff)
Cleanup: use 'r_' prefix for output arguments
Also pass some args as 'const'.
Diffstat (limited to 'source/blender/blenlib/intern/voronoi_2d.c')
-rw-r--r--source/blender/blenlib/intern/voronoi_2d.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenlib/intern/voronoi_2d.c b/source/blender/blenlib/intern/voronoi_2d.c
index 61052aa00f9..59270c58341 100644
--- a/source/blender/blenlib/intern/voronoi_2d.c
+++ b/source/blender/blenlib/intern/voronoi_2d.c
@@ -792,10 +792,10 @@ void BLI_voronoi_triangulate(const VoronoiSite *sites,
ListBase *edges,
int width,
int height,
- VoronoiTriangulationPoint **triangulated_points_r,
- int *triangulated_points_total_r,
- int (**triangles_r)[3],
- int *triangles_total_r)
+ VoronoiTriangulationPoint **r_triangulated_points,
+ int *r_triangulated_points_total,
+ int (**r_triangles)[3],
+ int *r_triangles_total)
{
VoronoiTriangulationPoint *triangulated_points = NULL;
int(*triangles)[3] = NULL;
@@ -853,11 +853,11 @@ void BLI_voronoi_triangulate(const VoronoiSite *sites,
mul_v3_fl(triangulation_point->color, 1.0f / triangulation_point->power);
}
- *triangulated_points_r = triangulated_points;
- *triangulated_points_total_r = triangulated_points_total;
+ *r_triangulated_points = triangulated_points;
+ *r_triangulated_points_total = triangulated_points_total;
- *triangles_r = triangles;
- *triangles_total_r = triangles_total;
+ *r_triangles = triangles;
+ *r_triangles_total = triangles_total;
BLI_freelistN(&boundary_edges);
}