[Bf-blender-cvs] [2f3f208901b] master: Cleanup: spelling in comments, unused arg warning

Campbell Barton noreply at git.blender.org
Mon Oct 17 02:18:23 CEST 2022


Commit: 2f3f208901b5bf0fde7fbc9c3f02b66f7591b169
Author: Campbell Barton
Date:   Mon Oct 17 11:16:39 2022 +1100
Branches: master
https://developer.blender.org/rB2f3f208901b5bf0fde7fbc9c3f02b66f7591b169

Cleanup: spelling in comments, unused arg warning

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

M	source/blender/blenkernel/BKE_mesh_types.h
M	source/blender/blenkernel/BKE_paint.h
M	source/blender/draw/intern/draw_pbvh.cc
M	source/blender/editors/space_outliner/outliner_draw.cc

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

diff --git a/source/blender/blenkernel/BKE_mesh_types.h b/source/blender/blenkernel/BKE_mesh_types.h
index dacc2188abb..80f61086052 100644
--- a/source/blender/blenkernel/BKE_mesh_types.h
+++ b/source/blender/blenkernel/BKE_mesh_types.h
@@ -99,7 +99,7 @@ struct MeshRuntime {
   /** Cache for BVH trees generated for the mesh. Defined in 'BKE_bvhutil.c' */
   BVHCache *bvh_cache = nullptr;
 
-  /** Cache of non-manifold boundary data for Shrinkwrap Target Project. */
+  /** Cache of non-manifold boundary data for Shrink-wrap Target Project. */
   ShrinkwrapBoundaryData *shrinkwrap_data = nullptr;
 
   /** Needed in case we need to lazily initialize the mesh. */
@@ -136,8 +136,8 @@ struct MeshRuntime {
 
   /**
    * Caches for lazily computed vertex and polygon normals. These are stored here rather than in
-   * #CustomData because they can be calculated on a const mesh, and adding custom data layers on a
-   * const mesh is not thread-safe.
+   * #CustomData because they can be calculated on a `const` mesh, and adding custom data layers on
+   * a `const` mesh is not thread-safe.
    */
   bool vert_normals_dirty = false;
   bool poly_normals_dirty = false;
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h
index 557edddac2a..437a22e4782 100644
--- a/source/blender/blenkernel/BKE_paint.h
+++ b/source/blender/blenkernel/BKE_paint.h
@@ -861,12 +861,13 @@ int *BKE_sculpt_face_sets_ensure(struct Mesh *mesh);
  */
 bool *BKE_sculpt_hide_poly_ensure(struct Mesh *mesh);
 
-/* Ensures a mask layer exists. If depsgraph and bmain are non-null,
- * a mask doesn't exist and the object has a multiresolution modifier
+/**
+ * Ensures a mask layer exists. If depsgraph and bmain are non-null,
+ * a mask doesn't exist and the object has a multi-resolution modifier
  * then the scene depsgraph will be evaluated to update the runtime
  * subdivision data.
  *
- * Note: always call *before* BKE_sculpt_update_object_for_edit.
+ * \note always call *before* #BKE_sculpt_update_object_for_edit.
  */
 int BKE_sculpt_mask_layers_ensure(struct Depsgraph *depsgraph,
                                   struct Main *bmain,
diff --git a/source/blender/draw/intern/draw_pbvh.cc b/source/blender/draw/intern/draw_pbvh.cc
index 60a0d4e6bb2..38fb6d55245 100644
--- a/source/blender/draw/intern/draw_pbvh.cc
+++ b/source/blender/draw/intern/draw_pbvh.cc
@@ -398,7 +398,7 @@ struct PBVHBatches {
         }
         else {
           foreach_grids(
-              [&](int /*x*/, int /*y*/, int /*grid_index*/, CCGElem * /*elems*/[4], int i) {
+              [&](int /*x*/, int /*y*/, int /*grid_index*/, CCGElem * /*elems*/[4], int /*i*/) {
                 *static_cast<uchar *>(GPU_vertbuf_raw_step(&access)) = 0;
               });
         }
diff --git a/source/blender/editors/space_outliner/outliner_draw.cc b/source/blender/editors/space_outliner/outliner_draw.cc
index 34d1e1bb546..e366c58349f 100644
--- a/source/blender/editors/space_outliner/outliner_draw.cc
+++ b/source/blender/editors/space_outliner/outliner_draw.cc
@@ -2954,7 +2954,7 @@ static bool outliner_is_main_row(const ARegion *region, const int ys)
 /**
  * Get the expected row background color to use for the data-block counter
  *
- * This reproduces somes of the logic of outliner_draw_highlights.
+ * This reproduces some of the logic of outliner_draw_highlights.
  * At the moment it doesn't implement the search match color since
  * we don't draw the data-block counter in those cases.
  */



More information about the Bf-blender-cvs mailing list