Cleanup: spelling in comments, unused arg warning

This commit is contained in:
Campbell Barton 2022-10-17 11:16:39 +11:00
parent 6ad04a031c
commit 2f3f208901
4 changed files with 9 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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