Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2022-04-22 08:16:37 +10:00
parent 179100c021
commit 2547c3c70c
12 changed files with 21 additions and 16 deletions

View File

@@ -865,7 +865,7 @@ ccl_device_inline void shader_eval_volume(KernelGlobals kg,
* `u(x, T) = u(x - (T - t) * u(x, T), t)`
*
* This is the typical way to model self-advection in fluid dynamics, however, we do not
* account for other forces affecting the velocity during simulation (pressure, buyoancy,
* account for other forces affecting the velocity during simulation (pressure, buoyancy,
* etc.): this gives a linear interpolation when fluid are mostly "curvy". For better
* results, a higher order interpolation scheme can be used (at the cost of more lookups),
* or an interpolation of the velocity fields for the previous and next frames could also

View File

@@ -25,9 +25,9 @@ struct ByteTraits {
using BlendType = int;
inline static const uchar range = 255; /* Zero-based maximum value. */
inline static const float frange = 255.0f; /* Convienent floating-point version of range. */
inline static const float frange = 255.0f; /* Convenient floating-point version of range. */
inline static const int cmpRange = 254;
inline static const int expandedRange = 256; /* One-based maxium value. */
inline static const int expandedRange = 256; /* One-based maximum value. */
inline static const int bytes = 1;
inline static const float unit = 255.0f;

View File

@@ -1926,7 +1926,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
/* Grease pencil multiframe falloff curve */
/* Grease pencil multi-frame falloff curve. */
if (!DNA_struct_elem_find(
fd->filesdna, "GP_Sculpt_Settings", "CurveMapping", "cur_falloff")) {
for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) {

View File

@@ -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);

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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. */

View File

@@ -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;

View File

@@ -8,7 +8,7 @@ namespace blender::io::usd {
/* Calls the function to load the USD plugins from the
* USD data directory under the Blender bin directory
* that was supplied as the --test-release-dir flag to ctest.
* that was supplied as the --test-release-dir flag to `ctest`.
* Thus function must be called before instantiating a USD
* stage to avoid errors. The returned string is the path to
* the USD data files directory from which the plugins were

View File

@@ -957,8 +957,8 @@ static void ntree_shader_shader_to_rgba_branch(bNodeTree *ntree, bNode *output_n
LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
node->tmp_flag = -1;
}
/* First gather the shader_to_rgba nodes linked to the ouput. This is separate to avoid
* conflicting usage of the node->tmp_flag. */
/* First gather the shader_to_rgba nodes linked to the output. This is separate to avoid
* conflicting usage of the `node->tmp_flag`. */
Vector<bNode *> shader_to_rgba_nodes;
nodeChainIterBackwards(ntree, output_node, shader_to_rgba_node_gather, &shader_to_rgba_nodes, 0);
@@ -971,7 +971,7 @@ static void ntree_shader_shader_to_rgba_branch(bNodeTree *ntree, bNode *output_n
bNode *start_node_copy = ntree_shader_copy_branch(
ntree, start_node, closure_node_filter, nullptr, 0);
/* Replace node copy link. This assumes that every node possibly connected to the closure input
* has only one ouput. */
* has only one output. */
bNodeSocket *closure_output = ntree_shader_node_output_get(start_node_copy, 0);
nodeRemLink(ntree, closure_input->link);
nodeAddLink(ntree, start_node_copy, closure_output, shader_to_rgba, closure_input);

View File

@@ -4398,7 +4398,7 @@ static int pyrna_struct_meta_idprop_setattro(PyObject *cls, PyObject *attr, PyOb
}
}
/* Fallback to standard py, delattr/setattr. */
/* Fallback to standard Python's `delattr/setattr`. */
return PyType_Type.tp_setattro(cls, attr, value);
}

View File

@@ -124,7 +124,7 @@ struct wmGizmoMap {
/**
* This is a container for all gizmo types that can be instantiated in a region.
* (similar to dropboxes).
* (similar to drop-boxes).
*
* \note There is only ever one of these for every (area, region) combination.
*/