Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-10-17 03:16:39 +0300
committerCampbell Barton <campbell@blender.org>2022-10-17 03:16:39 +0300
commit2f3f208901b5bf0fde7fbc9c3f02b66f7591b169 (patch)
treee1638b14cc04a11444ff144540095478ace4697b /source
parent6ad04a031c0f4375769a9a6a47942905be544992 (diff)
Cleanup: spelling in comments, unused arg warning
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_mesh_types.h6
-rw-r--r--source/blender/blenkernel/BKE_paint.h7
-rw-r--r--source/blender/draw/intern/draw_pbvh.cc2
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.cc2
4 files changed, 9 insertions, 8 deletions
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.
*/