[Bf-blender-cvs] [28e2e688d95] greasepencil-object: GP: More cleanup and renames
Antonioya
noreply at git.blender.org
Thu Dec 27 22:29:44 CET 2018
Commit: 28e2e688d95ea0d2c8be26ac921bdecb6d646cb0
Author: Antonioya
Date: Thu Dec 27 22:29:36 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB28e2e688d95ea0d2c8be26ac921bdecb6d646cb0
GP: More cleanup and renames
===================================================================
M source/blender/editors/gpencil/gpencil_merge.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_merge.c b/source/blender/editors/gpencil/gpencil_merge.c
index 135acb049cb..324b25bfa08 100644
--- a/source/blender/editors/gpencil/gpencil_merge.c
+++ b/source/blender/editors/gpencil/gpencil_merge.c
@@ -69,7 +69,7 @@ typedef struct tGPencilPointCache {
float strength;
} tGPencilPointCache;
-/* helper function to sort strokes around center */
+/* helper function to sort points */
static int gpencil_sort_points(const void *a1, const void *a2)
{
const tGPencilPointCache *ps1 = a1, *ps2 = a2;
@@ -211,7 +211,7 @@ static void gpencil_dissolve_points(bContext *C)
static void gpencil_calc_points_factor(
bContext *C, const int mode, int totpoints,
const bool clear_point, const bool clear_stroke,
- tGPencilPointCache *original_array)
+ tGPencilPointCache *src_array)
{
bGPDspoint *pt;
int i;
@@ -285,7 +285,7 @@ static void gpencil_calc_points_factor(
else {
angle = (M_PI * 2.0) - angle;
}
- tGPencilPointCache *sort_pt = &original_array[i];
+ tGPencilPointCache *sort_pt = &src_array[i];
bGPDspoint *pt2 = &pt_array[i];
copy_v3_v3(&sort_pt->x, &pt2->x);
@@ -343,7 +343,7 @@ static int gpencil_insert_to_array(
/* get first and last point location */
static void gpencil_get_extremes(
- tGPencilPointCache *original_array, int totpoints,
+ tGPencilPointCache *src_array, int totpoints,
bGPDstroke *gps_filter, float *start, float *end)
{
tGPencilPointCache *array_pt = NULL;
@@ -351,7 +351,7 @@ static void gpencil_get_extremes(
/* find first point */
for (i = 0; i < totpoints; i++) {
- array_pt = &original_array[i];
+ array_pt = &src_array[i];
if (gps_filter == array_pt->gps) {
copy_v3_v3(start, &array_pt->x);
break;
@@ -359,7 +359,7 @@ static void gpencil_get_extremes(
}
/* find last point */
for (i = totpoints - 1; i >= 0; i--) {
- array_pt = &original_array[i];
+ array_pt = &src_array[i];
if (gps_filter == array_pt->gps) {
copy_v3_v3(end, &array_pt->x);
break;
More information about the Bf-blender-cvs
mailing list