Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-04 02:29:53 +0300
committerCampbell Barton <campbell@blender.org>2022-03-04 02:31:11 +0300
commit8b06c524d207f5e67ef22d6a1869c94d8f91717f (patch)
tree3a89ed263632daa2b9bd49971ef45dee46744375 /source/blender/editors/gpencil
parentfd2519e0b6948903892c3cfc373c903337979407 (diff)
Cleanup: spelling in comments, function name
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/annotate_draw.c8
-rw-r--r--source/blender/editors/gpencil/annotate_paint.c6
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c6
3 files changed, 12 insertions, 8 deletions
diff --git a/source/blender/editors/gpencil/annotate_draw.c b/source/blender/editors/gpencil/annotate_draw.c
index f175145fca7..f720f261ad5 100644
--- a/source/blender/editors/gpencil/annotate_draw.c
+++ b/source/blender/editors/gpencil/annotate_draw.c
@@ -110,7 +110,9 @@ static void annotation_draw_stroke_arrow_buffer(uint pos,
immEnd();
}
-/* draw stroke defined in buffer (simple ogl lines/points for now, as dotted lines) */
+/**
+ * Draw stroke defined in buffer (simple GPU lines/points for now, as dotted lines).
+ */
static void annotation_draw_stroke_buffer(bGPdata *gps,
short thickness,
short dflag,
@@ -298,7 +300,9 @@ static void annotation_draw_stroke_point(const bGPDspoint *points,
immUnbindProgram();
}
-/* draw a given stroke in 3d (i.e. in 3d-space), using simple ogl lines */
+/**
+ * Draw a given stroke in 3d (i.e. in 3d-space), using simple GPU lines.
+ */
static void annotation_draw_stroke_3d(
const bGPDspoint *points, int totpoints, short thickness, const float ink[4], bool cyclic)
{
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index 5ab4a663efe..1a7b034f2f8 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -2466,10 +2466,10 @@ static int annotation_draw_modal(bContext *C, wmOperator *op, const wmEvent *eve
EVT_PAD7,
EVT_PAD8,
EVT_PAD9)) {
- /* allow numpad keys so that camera/view manipulations can still take place
- * - PAD0 in particular is really important for Grease Pencil drawing,
+ /* Allow numpad keys so that camera/view manipulations can still take place
+ * - #EVT_PAD0 in particular is really important for Grease Pencil drawing,
* as animators may be working "to camera", so having this working
- * is essential for ensuring that they can quickly return to that view
+ * is essential for ensuring that they can quickly return to that view.
*/
}
else if ((event->type == EVT_BKEY) && (event->val == KM_RELEASE)) {
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 4862545e917..22bdc1af119 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -3649,10 +3649,10 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
EVT_PAD7,
EVT_PAD8,
EVT_PAD9)) {
- /* allow numpad keys so that camera/view manipulations can still take place
- * - PAD0 in particular is really important for Grease Pencil drawing,
+ /* Allow numpad keys so that camera/view manipulations can still take place
+ * - #EVT_PAD0 in particular is really important for Grease Pencil drawing,
* as animators may be working "to camera", so having this working
- * is essential for ensuring that they can quickly return to that view
+ * is essential for ensuring that they can quickly return to that view.
*/
}
else if ((!ELEM(p->paintmode, GP_PAINTMODE_ERASER, GP_PAINTMODE_SET_CP))) {