[Bf-blender-cvs] [7a31486571e] greasepencil-edit-curve: GPencil: Fix comments and rename _pad2 to _pad
Falk David
noreply at git.blender.org
Thu Nov 12 17:21:54 CET 2020
Commit: 7a31486571e0a10f6944ea00aab86a48f09e7126
Author: Falk David
Date: Thu Nov 12 17:12:37 2020 +0100
Branches: greasepencil-edit-curve
https://developer.blender.org/rB7a31486571e0a10f6944ea00aab86a48f09e7126
GPencil: Fix comments and rename _pad2 to _pad
===================================================================
M source/blender/editors/gpencil/gpencil_vertex_paint.c
M source/blender/makesdna/DNA_gpencil_types.h
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_vertex_paint.c b/source/blender/editors/gpencil/gpencil_vertex_paint.c
index da975e1c7e5..a4dc677f0dc 100644
--- a/source/blender/editors/gpencil/gpencil_vertex_paint.c
+++ b/source/blender/editors/gpencil/gpencil_vertex_paint.c
@@ -1019,7 +1019,7 @@ static bool gpencil_vertexpaint_brush_do_frame(bContext *C,
/* Check points below the brush. */
bool hit = gpencil_vertexpaint_select_stroke(gso, gps, tool, diff_mat);
- /* If stroke was hit and has an editcurve the curve needs an update */
+ /* If stroke was hit and has an editcurve the curve needs an update. */
bGPDstroke *gps_active = (gps->runtime.gps_orig) ? gps->runtime.gps_orig : gps;
if (gps_active->editcurve != NULL && hit) {
gps_active->editcurve->flag |= GP_CURVE_NEEDS_STROKE_UPDATE;
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h
index 76f10338f6f..94b75642fd6 100644
--- a/source/blender/makesdna/DNA_gpencil_types.h
+++ b/source/blender/makesdna/DNA_gpencil_types.h
@@ -174,13 +174,13 @@ typedef enum eGPDpalette_Flag {
/* GP Curve Point */
typedef struct bGPDcurve_point {
- /** Bezier Triple for the handles and control points */
+ /** Bezier Triple for the handles and control points. */
BezTriple bezt;
/** Pressure of input device (from 0 to 1) at this point. */
float pressure;
/** Color strength (used for alpha factor). */
float strength;
- /** Index of corresponding point in gps->points */
+ /** Index of corresponding point in gps->points. */
int point_index;
/** Additional options. */
@@ -190,12 +190,12 @@ typedef struct bGPDcurve_point {
float uv_fac;
/** Uv rotation for dot mode. */
float uv_rot;
- /** Uv for fill mode */
+ /** Uv for fill mode. */
float uv_fill[2];
/** Vertex Color RGBA (A=mix factor). */
float vert_color[4];
- char _pad2[4];
+ char _pad[4];
} bGPDcurve_point;
/* bGPDcurve_point->flag */
@@ -631,9 +631,9 @@ typedef struct bGPdata {
int flag;
/** Default resolution for generated curves using curve editing method. */
int curve_edit_resolution;
- /** Curve Editing error threshold */
+ /** Curve Editing error threshold. */
float curve_edit_threshold;
- /** Curve Editing corner angle (less or equal is treated as corner) */
+ /** Curve Editing corner angle (less or equal is treated as corner). */
float curve_edit_corner_angle;
/* Palettes */
More information about the Bf-blender-cvs
mailing list