[Bf-blender-cvs] [4ab7104a972] greasepencil-object: Cleanup: Rename function
Antonio Vazquez
noreply at git.blender.org
Sat Aug 5 11:17:58 CEST 2017
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);
More information about the Bf-blender-cvs
mailing list