Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2023-07-26 15:23:26 +10:00
parent cf49cbde45
commit e6dafbed66
4 changed files with 9 additions and 7 deletions

View File

@@ -492,7 +492,7 @@ static int fill_orig_loops(const Face *f,
int orig_me_vert_offset = mim.mesh_vert_offset[orig_me_index];
int first_orig_v_in_orig_me = first_orig_v - orig_me_vert_offset;
BLI_assert(0 <= first_orig_v_in_orig_me && first_orig_v_in_orig_me < orig_me->totvert);
/* Assume all vertices in an mpoly are unique. */
/* Assume all vertices in each face is unique. */
int offset = -1;
for (int i = 0; i < orig_mplen; ++i) {
int loop_i = i + orig_face.start();

View File

@@ -257,7 +257,7 @@ void BKE_mesh_origindex_map_create(MeshElemMap **r_map,
map[i].count = 0;
}
/* assign face-tessface users */
/* Assign face-tessellation users. */
for (i = 0; i < totfinal; i++) {
if (final_origindex[i] != ORIGINDEX_NONE) {
MeshElemMap *map_ele = &map[final_origindex[i]];
@@ -286,7 +286,7 @@ void BKE_mesh_origindex_map_create_looptri(MeshElemMap **r_map,
index_step += ME_FACE_TRI_TOT(faces[i].size());
}
/* assign face-tessface users */
/* Assign face-tessellation users. */
for (int i = 0; i < looptri_num; i++) {
MeshElemMap *map_ele = &map[looptri_faces[i]];
map_ele->indices[map_ele->count++] = i;

View File

@@ -170,7 +170,7 @@ static void text_blend_write(BlendWriter *writer, ID *id, const void *id_address
text->flags &= ~TXT_ISEXT;
}
/* Clean up, important in undo case to reduce false detection of changed datablocks. */
/* Clean up, important in undo case to reduce false detection of changed data-blocks. */
text->compiled = nullptr;
/* write LibData */
@@ -182,7 +182,7 @@ static void text_blend_write(BlendWriter *writer, ID *id, const void *id_address
}
if (!(text->flags & TXT_ISEXT)) {
/* now write the text data, in two steps for optimization in the readfunction */
/* Now write the text data, in two steps for optimization in the read-function. */
LISTBASE_FOREACH (TextLine *, tmp, &text->lines) {
BLO_write_struct(writer, TextLine, tmp);
}

View File

@@ -35,8 +35,10 @@ class DepsgraphBuilder {
virtual bool check_pchan_has_bbone_segments(const Object *object, const bPoseChannel *pchan);
virtual bool check_pchan_has_bbone_segments(const Object *object, const char *bone_name);
/** If `target_prop` + `rna_path` uses indirection via the `scene.camera` pointer, returns
* the substring of `rna_path` relative to the camera; otherwise returns nullptr. */
/**
* If `target_prop` + `rna_path` uses indirection via the `scene.camera` pointer, returns
* the sub-string of `rna_path` relative to the camera; otherwise returns nullptr.
*/
static const char *get_rna_path_relative_to_scene_camera(const Scene *scene,
const PointerRNA &target_prop,
const char *rna_path);