[Bf-blender-cvs] [a3e1a9e2aac] master: Cleanup: spelling in comments, format

Campbell Barton noreply at git.blender.org
Fri Aug 26 04:48:40 CEST 2022


Commit: a3e1a9e2aace26a71c2698cd96ce4086db25e94d
Author: Campbell Barton
Date:   Fri Aug 26 12:45:20 2022 +1000
Branches: master
https://developer.blender.org/rBa3e1a9e2aace26a71c2698cd96ce4086db25e94d

Cleanup: spelling in comments, format

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

M	intern/cycles/util/hash.h
M	intern/ghost/intern/GHOST_SystemWin32.cpp
M	source/blender/blenfont/intern/blf_font.c
M	source/blender/blenkernel/BKE_curves.hh
M	source/blender/blenkernel/intern/mesh.cc
M	source/blender/draw/intern/DRW_render.h
M	source/blender/editors/interface/interface_intern.h
M	source/blender/editors/object/object_vgroup.cc

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

diff --git a/intern/cycles/util/hash.h b/intern/cycles/util/hash.h
index 61705276a90..351b8796be7 100644
--- a/intern/cycles/util/hash.h
+++ b/intern/cycles/util/hash.h
@@ -378,7 +378,7 @@ ccl_device_inline avxi hash_avxi4(avxi kx, avxi ky, avxi kz, avxi kw)
 
 /* ***** Hash Prospector Hash Functions *****
  *
- * These are based on the high-quality 32-bit hash/mixings functions from
+ * These are based on the high-quality 32-bit hash/mixing functions from
  * https://github.com/skeeto/hash-prospector
  */
 
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index ddbe8b67742..31483377c73 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1101,7 +1101,7 @@ GHOST_EventCursor *GHOST_SystemWin32::processCursorEvent(GHOST_WindowWin32 *wind
   if (window->getCursorGrabModeIsWarp()) {
     /* WORKAROUND:
      * Sometimes Windows ignores `SetCursorPos()` or `SendInput()` calls or the mouse event is
-     * outdate. Identify these cases by checking if the cursor is not yet within bounds. */
+     * outdated. Identify these cases by checking if the cursor is not yet within bounds. */
     static bool is_warping_x = false;
     static bool is_warping_y = false;
 
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c
index a9bc1bc55fe..8941eb01d3a 100644
--- a/source/blender/blenfont/intern/blf_font.c
+++ b/source/blender/blenfont/intern/blf_font.c
@@ -20,7 +20,7 @@
 #include FT_CACHE_H /* FreeType Cache. */
 #include FT_GLYPH_H
 #include FT_MULTIPLE_MASTERS_H /* Variable font support. */
-#include FT_TRUETYPE_IDS_H     /* Codepoint coverage constants. */
+#include FT_TRUETYPE_IDS_H     /* Code-point coverage constants. */
 #include FT_TRUETYPE_TABLES_H  /* For TT_OS2 */
 
 #include "MEM_guardedalloc.h"
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh
index 8d17fe56156..4b0fc293b54 100644
--- a/source/blender/blenkernel/BKE_curves.hh
+++ b/source/blender/blenkernel/BKE_curves.hh
@@ -572,8 +572,8 @@ struct Insertion {
  * Compute the insertion of a control point and handles in a Bezier segment without changing its
  * shape.
  * \param parameter: Factor in from 0 to 1 defining the insertion point within the segment.
- * \return Inserted point paramaters including position, and both new and updated handles for
- * neighbouring control points.
+ * \return Inserted point parameters including position, and both new and updated handles for
+ * neighboring control points.
  *
  * <pre>
  *           handle_prev         handle_next
diff --git a/source/blender/blenkernel/intern/mesh.cc b/source/blender/blenkernel/intern/mesh.cc
index 7f2c09f049b..272dd922caa 100644
--- a/source/blender/blenkernel/intern/mesh.cc
+++ b/source/blender/blenkernel/intern/mesh.cc
@@ -249,7 +249,7 @@ static void mesh_blend_write(BlendWriter *writer, ID *id, const void *id_address
     Set<std::string> names_to_skip;
     if (!BLO_write_is_undo(writer)) {
       BKE_mesh_legacy_convert_hide_layers_to_flags(mesh);
-      /* When converting to the old mesh format, don't save redunant attributes. */
+      /* When converting to the old mesh format, don't save redundant attributes. */
       names_to_skip.add_multiple_new({".hide_vert", ".hide_edge", ".hide_poly"});
     }
 
diff --git a/source/blender/draw/intern/DRW_render.h b/source/blender/draw/intern/DRW_render.h
index a3097251d35..8745d1100e4 100644
--- a/source/blender/draw/intern/DRW_render.h
+++ b/source/blender/draw/intern/DRW_render.h
@@ -409,7 +409,7 @@ void DRW_shgroup_call_ex(DRWShadingGroup *shgroup,
                          void *user_data);
 
 /**
- * If ob is NULL, unit modelmatrix is assumed and culling is bypassed.
+ * If ob is NULL, unit model-matrix is assumed and culling is bypassed.
  */
 #define DRW_shgroup_call(shgroup, geom, ob) \
   DRW_shgroup_call_ex(shgroup, ob, NULL, geom, false, NULL)
@@ -420,8 +420,8 @@ void DRW_shgroup_call_ex(DRWShadingGroup *shgroup,
 #define DRW_shgroup_call_obmat(shgroup, geom, obmat) \
   DRW_shgroup_call_ex(shgroup, NULL, obmat, geom, false, NULL)
 
-/* TODO(fclem): remove this when we have DRWView */
-/* user_data is used by DRWCallVisibilityFn defined in DRWView. */
+/* TODO(fclem): remove this when we have #DRWView */
+/* user_data is used by #DRWCallVisibilityFn defined in #DRWView. */
 #define DRW_shgroup_call_with_callback(shgroup, geom, ob, user_data) \
   DRW_shgroup_call_ex(shgroup, ob, NULL, geom, false, user_data)
 
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h
index c8468950c34..0c842084de6 100644
--- a/source/blender/editors/interface/interface_intern.h
+++ b/source/blender/editors/interface/interface_intern.h
@@ -1545,10 +1545,10 @@ uiButViewItem *ui_block_view_find_matching_view_item_but_in_old_block(
 struct uiListType *UI_UL_cache_file_layers(void);
 
 struct ID *ui_template_id_liboverride_hierarchy_make(struct bContext *C,
-                                                       struct Main *bmain,
-                                                       struct ID *owner_id,
-                                                       struct ID *id,
-                                                       const char **r_undo_push_label);
+                                                     struct Main *bmain,
+                                                     struct ID *owner_id,
+                                                     struct ID *id,
+                                                     const char **r_undo_push_label);
 
 #ifdef __cplusplus
 }
diff --git a/source/blender/editors/object/object_vgroup.cc b/source/blender/editors/object/object_vgroup.cc
index f4f5b31e86a..0e0f5bd94cc 100644
--- a/source/blender/editors/object/object_vgroup.cc
+++ b/source/blender/editors/object/object_vgroup.cc
@@ -1319,14 +1319,15 @@ static void getVerticalAndHorizontalChange(const float norm[3],
   changes[index][1] = len_v3v3(projA, projB);
 }
 
-/* by changing nonzero weights, try to move a vertex in me->mverts with index 'index' to
- * distToBe distance away from the provided plane strength can change distToBe so that it moves
- * towards distToBe by that percentage cp changes how much the weights are adjusted
+/**
+ * By changing nonzero weights, try to move a vertex in `me->mverts` with index 'index' to
+ * `distToBe` distance away from the provided plane strength can change `distToBe` so that it moves
+ * towards `distToBe` by that percentage `cp` changes how much the weights are adjusted
  * to check the distance
  *
- * index is the index of the vertex being moved
- * norm and d are the plane's properties for the equation: ax + by + cz + d = 0
- * coord is a point on the plane
+ * `index` is the index of the vertex being moved.
+ * `norm` and `d` are the plane's properties for the equation: `ax + by + cz + d = 0`.
+ * `coord` is a point on the plane.
  */
 static void moveCloserToDistanceFromPlane(Depsgraph *depsgraph,
                                           Scene *UNUSED(scene),



More information about the Bf-blender-cvs mailing list