[Bf-blender-cvs] [c741558509a] master: Cleanup: spelling in comments

Campbell Barton noreply at git.blender.org
Thu Aug 12 06:40:42 CEST 2021


Commit: c741558509a35317209bbfd3ff77c413f791a47c
Author: Campbell Barton
Date:   Thu Aug 12 14:34:43 2021 +1000
Branches: master
https://developer.blender.org/rBc741558509a35317209bbfd3ff77c413f791a47c

Cleanup: spelling in comments

===================================================================

M	source/blender/compositor/operations/COM_DilateErodeOperation.cc
M	source/blender/draw/engines/select/select_debug_engine.c
M	source/blender/editors/space_file/file_ops.c
M	source/blender/makesdna/DNA_ID.h
M	source/blender/makesdna/intern/makesdna.c
M	source/blender/python/mathutils/mathutils_geometry.c

===================================================================

diff --git a/source/blender/compositor/operations/COM_DilateErodeOperation.cc b/source/blender/compositor/operations/COM_DilateErodeOperation.cc
index c67a35b686c..a27148f967d 100644
--- a/source/blender/compositor/operations/COM_DilateErodeOperation.cc
+++ b/source/blender/compositor/operations/COM_DilateErodeOperation.cc
@@ -500,7 +500,7 @@ void *ErodeStepOperation::initializeTileData(rcti *rect)
   int bwidth = rect->xmax - rect->xmin;
   int bheight = rect->ymax - rect->ymin;
 
-  /* NOTE: Cache buffer has original tilesize width, but new height.
+  /* NOTE: Cache buffer has original tile-size width, but new height.
    * We have to calculate the additional rows in the first pass,
    * to have valid data available for the second pass. */
   tile_info *result = create_cache(rect->xmin, rect->xmax, ymin, ymax);
diff --git a/source/blender/draw/engines/select/select_debug_engine.c b/source/blender/draw/engines/select/select_debug_engine.c
index ded96be23f3..e9437c5ab92 100644
--- a/source/blender/draw/engines/select/select_debug_engine.c
+++ b/source/blender/draw/engines/select/select_debug_engine.c
@@ -19,7 +19,7 @@
 /** \file
  * \ingroup draw_engine
  *
- * Engine for debuging the selection map drawing.
+ * Engine for debugging the selection map drawing.
  */
 
 #include "DNA_ID.h"
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 08d741545a8..2f1acd2ca4d 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -1388,8 +1388,8 @@ int file_highlight_set(SpaceFile *sfile, ARegion *region, int mx, int my)
   FileSelectParams *params;
   int numfiles, origfile;
 
-  /* In case blender starts where the mouse is over a File broser, this operator can be invoked
-   * when the sfile or sfile->layout isn't initialized yet. */
+  /* In case blender starts where the mouse is over a File browser,
+   * this operator can be invoked when the `sfile` or `sfile->layout` isn't initialized yet. */
   if (sfile == NULL || sfile->files == NULL || sfile->layout == NULL) {
     return 0;
   }
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index 8a577be2749..10a5a0f1c47 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -587,7 +587,7 @@ enum {
    *
    * RESET_NEVER
    *
-   * NOTE: Only used by nodegroups currently.
+   * NOTE: Only used by node-groups currently.
    */
   LIB_TAG_LOCALIZED = 1 << 14,
 
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index 8324db1a9c8..061c3462a69 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -1118,11 +1118,11 @@ static int calculate_struct_sizes(int firststruct, FILE *file_verify, const char
           types_align_32[structtype] = max_align_32;
           types_align_64[structtype] = max_align_64;
 
-          /* Santiy check 1: alignment should never be 0. */
+          /* Sanity check 1: alignment should never be 0. */
           BLI_assert(max_align_32);
           BLI_assert(max_align_64);
 
-          /* Santiy check 2: alignment should always be equal or smaller than the maximum
+          /* Sanity check 2: alignment should always be equal or smaller than the maximum
            * size of a build in type which is 8 bytes (ie int64_t or double). */
           BLI_assert(max_align_32 <= 8);
           BLI_assert(max_align_64 <= 8);
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index 3c0ea9a9566..5868c76b28f 100644
--- a/source/blender/python/mathutils/mathutils_geometry.c
+++ b/source/blender/python/mathutils/mathutils_geometry.c
@@ -201,7 +201,7 @@ static PyObject *M_Geometry_intersect_line_line(PyObject *UNUSED(self), PyObject
   }
 
   if (result == 0) {
-    /* Co-linear. */
+    /* Collinear. */
     Py_RETURN_NONE;
   }



More information about the Bf-blender-cvs mailing list