diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-22 01:16:37 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-22 03:11:48 +0300 |
commit | 2547c3c70ceef763ae9698b8dc76c12168a605d4 (patch) | |
tree | eccc4cff0d39cb866a66ca0d432bdc2a3ec71a45 /source/blender/editors | |
parent | 179100c021269c278396c9a8039a0b75703c5f3a (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/editors')
5 files changed, 11 insertions, 6 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 93a4a784674..7c7f532f087 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -1313,7 +1313,7 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p) /* Calc geometry data. */ BKE_gpencil_stroke_geometry_update(gpd, gps); - /* In Multiframe mode, duplicate the stroke in other frames. */ + /* In multi-frame mode, duplicate the stroke in other frames. */ if (GPENCIL_MULTIEDIT_SESSIONS_ON(p->gpd)) { const bool tail = (ts->gpencil_flags & GP_TOOL_FLAG_PAINT_ONBACK); BKE_gpencil_stroke_copy_to_keyframes(gpd, gpl, p->gpf, gps, tail); diff --git a/source/blender/editors/include/ED_space_api.h b/source/blender/editors/include/ED_space_api.h index fd4a28240fa..c69698f3f73 100644 --- a/source/blender/editors/include/ED_space_api.h +++ b/source/blender/editors/include/ED_space_api.h @@ -18,7 +18,7 @@ struct bContext; void ED_spacetypes_init(void); void ED_spacemacros_init(void); -/* the pluginnable API for export to editors */ +/* The plugin-able API for export to editors. */ /* -------------------------------------------------------------------- */ /** \name Calls for registering default spaces diff --git a/source/blender/editors/sculpt_paint/sculpt_ops.c b/source/blender/editors/sculpt_paint/sculpt_ops.c index b5fb7ce3366..e02c1b1aac3 100644 --- a/source/blender/editors/sculpt_paint/sculpt_ops.c +++ b/source/blender/editors/sculpt_paint/sculpt_ops.c @@ -1044,7 +1044,7 @@ static int sculpt_mask_by_color_invoke(bContext *C, wmOperator *op, const wmEven BKE_sculpt_update_object_for_edit(depsgraph, ob, true, true, false); - /* Color data is not available in Multires or dyanmic topology. */ + /* Color data is not available in multi-resolution or dynamic topology. */ if (!SCULPT_handles_colors_report(ss, op->reports)) { return OPERATOR_CANCELLED; } diff --git a/source/blender/editors/space_text/text_format_py.c b/source/blender/editors/space_text/text_format_py.c index 6658ac5a83c..47d0168195b 100644 --- a/source/blender/editors/space_text/text_format_py.c +++ b/source/blender/editors/space_text/text_format_py.c @@ -31,12 +31,16 @@ static int txtfmt_py_find_builtinfunc(const char *string) { int i, len; - /* list is from... + /** + * The following items are derived from this list: + * \code{.py} * ", ".join(['"%s"' % kw * for kw in sorted(__import__("keyword").kwlist + __import__("keyword").softkwlist) * if kw not in {"False", "None", "True", "def", "class", "_"}]) + * \endcode * - * ... and for this code: + * The code below can be re-generated using: + * \code{.py} * import keyword * ignore = {"False", "None", "True", "def", "class", "_"} * keywords = sorted(set(keyword.kwlist + keyword.softkwlist) - ignore) @@ -48,6 +52,7 @@ static int txtfmt_py_find_builtinfunc(const char *string) * for (i, kw) in enumerate(keywords)]) + "\n" + * last % (' '*(longest-2)) + "\n" + * "}") + * \endcode */ /* Keep aligned args for readability. */ diff --git a/source/blender/editors/transform/transform_mode_bend.c b/source/blender/editors/transform/transform_mode_bend.c index 348f012e300..acc6b20810f 100644 --- a/source/blender/editors/transform/transform_mode_bend.c +++ b/source/blender/editors/transform/transform_mode_bend.c @@ -106,7 +106,7 @@ static void transdata_elem_bend(const TransInfo *t, } if (t->options & CTX_GPENCIL_STROKES) { - /* grease pencil multiframe falloff */ + /* Grease pencil multi-frame falloff. */ bGPDstroke *gps = (bGPDstroke *)td->extra; if (gps != NULL) { fac_scaled = fac * td->factor * gps->runtime.multi_frame_falloff; |