Commit: 4ab7104a9727289c84d291853a08d59b0907595a
Author: Antonio Vazquez
Date:   Sat Aug 5 10:39:38 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB4ab7104a9727289c84d291853a08d59b0907595a

Cleanup: Rename function

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

M       source/blender/blenkernel/intern/gpencil_modifier.c

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

diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c 
b/source/blender/blenkernel/intern/gpencil_modifier.c
index f4842101753..afef2e4f891 100644
--- a/source/blender/blenkernel/intern/gpencil_modifier.c
+++ b/source/blender/blenkernel/intern/gpencil_modifier.c
@@ -808,7 +808,7 @@ void BKE_gpencil_geometry_modifiers(Object *ob, bGPDlayer 
*gpl, bGPDframe *gpf)
 }
 
 /* Get points of stroke always flat to view not affected by camera view or 
view position */
-static void gpencil_stroke_2d_idx_flat(const bGPDspoint *points, int 
totpoints, tbGPDspoint *points2d)
+static void gpencil_stroke_project_2d(const bGPDspoint *points, int totpoints, 
tbGPDspoint *points2d)
 {
        const bGPDspoint *pt0 = &points[0];
        const bGPDspoint *pt1 = &points[1];
@@ -969,7 +969,7 @@ void BKE_gpencil_simplify_modifier(int UNUSED(id), 
GpencilSimplifyModifierData *
        /* first create temp data and convert points to 2D */
        tbGPDspoint *points2d = MEM_mallocN(sizeof(tbGPDspoint) * 
gps->totpoints, "GP Stroke temp 2d points");
 
-       gpencil_stroke_2d_idx_flat(gps->points, gps->totpoints, points2d);
+       gpencil_stroke_project_2d(gps->points, gps->totpoints, points2d);
        
        gpencil_rdp_stroke(gps, points2d, mmd->factor);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to