Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2023-11-29 15:47:25 +11:00
parent b12edbcb9c
commit a385a98e8e
9 changed files with 14 additions and 13 deletions

View File

@ -354,7 +354,8 @@ void BKE_constraint_mat_convertspace(Object *ob,
/* local to pose - do inverse procedure that was done for pose to local */
else {
if (pchan->bone) {
/* we need the posespace_matrix = local_matrix + (parent_posespace_matrix + restpos) */
/* We need the:
* `posespace_matrix = local_matrix + (parent_posespace_matrix + restpos)`. */
BKE_armature_mat_bone_to_pose(pchan, mat, mat);
}

View File

@ -2253,7 +2253,7 @@ static void propagate_windings_and_in_output_volume(PatchesInfo &pinfo,
}
/**
* Given an array of winding numbers, where the ith entry is a cell's winding
* Given an array of winding numbers, where the `i-th` entry is a cell's winding
* number with respect to input shape (mesh part) i, return true if the
* cell should be included in the output of the boolean operation.
* Intersection: all the winding numbers must be nonzero.

View File

@ -973,7 +973,7 @@ void BM_editselection_plane(BMEditSelection *ese, float r_plane[3])
}
else {
/* make a fake plane that's at right-angles to the normal
* we can't make a crossvec from a vec that's the same as the vec
* we can't make a cross-vector from a vec that's the same as the vec
* unlikely but possible, so make sure if the normal is (0, 0, 1)
* that vec isn't the same or in the same direction even. */
if (eve->no[0] < 0.5f) {

View File

@ -1496,7 +1496,7 @@ bool BM_face_split_edgenet_connect_islands(BMesh *bm,
bm->elem_index_dirty |= BM_VERT;
/* Now create bvh tree
/* Now create BVH tree.
*
* Note that a large epsilon is used because meshes with dimensions of around 100+ need it.
* see #52329. */

View File

@ -58,9 +58,9 @@ void bmesh_edge_vert_swap(BMEdge *e, BMVert *v_dst, BMVert *v_src)
void bmesh_disk_vert_replace(BMEdge *e, BMVert *v_dst, BMVert *v_src)
{
BLI_assert(e->v1 == v_src || e->v2 == v_src);
bmesh_disk_edge_remove(e, v_src); /* remove e from tv's disk cycle */
bmesh_disk_vert_swap(e, v_dst, v_src); /* swap out tv for v_new in e */
bmesh_disk_edge_append(e, v_dst); /* add e to v_dst's disk cycle */
bmesh_disk_edge_remove(e, v_src); /* Remove `e` from `v_src` disk cycle. */
bmesh_disk_vert_swap(e, v_dst, v_src); /* Swap out `v_src` for `v_dst` in `e`. */
bmesh_disk_edge_append(e, v_dst); /* Add `e` to `v_dst` disk cycle. */
BLI_assert(e->v1 != e->v2);
}

View File

@ -1972,8 +1972,8 @@ static bool make_unit_square_map(const float va[3],
normalize_v3(vddir);
add_v3_v3v3(vd, vo, vddir);
/* The cols of m are: {vmid - va, vmid - vb, vmid + vd - va -vb, va + vb - vmid;
* Blender transform matrices are stored such that m[i][*] is ith column;
/* The cols of m are: `vmid - va, vmid - vb, vmid + vd - va -vb, va + vb - vmid`;
* Blender transform matrices are stored such that `m[i][*]` is `i-th` column;
* the last elements of each col remain as they are in unity matrix. */
sub_v3_v3v3(&r_mat[0][0], vmid, va);
r_mat[0][3] = 0.0f;

View File

@ -47,7 +47,7 @@ void main()
thickness);
vec3 world_pos;
if (hairThicknessRes > 1) {
/* Calculate the thickness, thick-time, worldpos taken into account the outline. */
/* Calculate the thickness, thick-time, world-position taken into account the outline. */
float outline_width = point_world_to_ndc(center_wpos).w * 1.25 * sizeViewportInv.y *
drw_view.wininv[1][1];
thickness += outline_width;

View File

@ -6017,7 +6017,7 @@ static int ui_do_but_SCROLL(
const bool is_motion = (event->type == MOUSEMOVE);
if (ui_numedit_but_SLI(
but, data, (horizontal) ? mx : my, horizontal, is_motion, false, false)) {
/* Scrollbars in popups need UI layout refresh to update the right items to show. */
/* Scroll-bars in popups need UI layout refresh to update the right items to show. */
if (ui_block_is_popup_any(but->block)) {
ED_region_tag_refresh_ui(data->region);
}

View File

@ -1906,8 +1906,8 @@ static void scroller_activate_init(bContext *C,
* - zooming must be allowed on this axis, otherwise, default to pan
*/
View2DScrollers scrollers;
/* Some Editors like the Filebrowser or Spreadsheet already set up custom masks for scrollbars
* (they dont cover the whole region width or height), these need to be considered, otherwise
/* Some Editors like the File-browser or Spreadsheet already set up custom masks for scroll-bars
* (they don't cover the whole region width or height), these need to be considered, otherwise
* coords for `mouse_in_scroller_handle` later are not compatible. */
rcti scroller_mask = v2d->hor;
BLI_rcti_union(&scroller_mask, &v2d->vert);