[Bf-blender-cvs] [c4c60b3f94e] greasepencil-object: Cleanup: Rename function

Antonio Vazquez noreply at git.blender.org
Wed Feb 21 19:33:55 CET 2018


Commit: c4c60b3f94eb4389b459cc6486cfa24552fef3fb
Author: Antonio Vazquez
Date:   Wed Feb 21 16:21:42 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBc4c60b3f94eb4389b459cc6486cfa24552fef3fb

Cleanup: Rename function

===================================================================

M	source/blender/draw/engines/gpencil/gpencil_geom.c

===================================================================

diff --git a/source/blender/draw/engines/gpencil/gpencil_geom.c b/source/blender/draw/engines/gpencil/gpencil_geom.c
index 4374aad75da..b191fd64c2b 100644
--- a/source/blender/draw/engines/gpencil/gpencil_geom.c
+++ b/source/blender/draw/engines/gpencil/gpencil_geom.c
@@ -481,7 +481,7 @@ static void gpencil_calc_2d_bounding_box(
 }
 
 /* calc texture coordinates using flat projected points */
-static void gpencil_calc_stroke_uv(const float(*points2d)[2], int totpoints, float minv[2], float maxv[2], float(*r_uv)[2])
+static void gpencil_calc_stroke_fill_uv(const float(*points2d)[2], int totpoints, float minv[2], float maxv[2], float(*r_uv)[2])
 {
 	float d[2];
 	d[0] = maxv[0] - minv[0];
@@ -559,7 +559,7 @@ static void gp_triangulate_stroke_fill(bGPDstroke *gps)
 	/* first needs bounding box data */
 	gpencil_calc_2d_bounding_box(points2d, gps->totpoints, minv, maxv, false);
 	/* calc uv data */
-	gpencil_calc_stroke_uv(points2d, gps->totpoints, minv, maxv, uv);
+	gpencil_calc_stroke_fill_uv(points2d, gps->totpoints, minv, maxv, uv);
 
 	/* Number of triangles */
 	gps->tot_triangles = gps->totpoints - 2;



More information about the Bf-blender-cvs mailing list