Cleanup: spelling, punctuation

This commit is contained in:
Campbell Barton 2021-07-05 22:26:25 +10:00
parent 2ecc33d84b
commit bd0de99b52
15 changed files with 20 additions and 20 deletions

View File

@ -209,7 +209,7 @@ class SceneParams {
int curve_subdivisions()
{
/* Matching the tesselation rate limit in Embree. */
/* Matching the tessellation rate limit in Embree. */
return clamp(1 << hair_subdivisions, 1, 16);
}
};

View File

@ -1932,7 +1932,7 @@ static Face *cdt_tri_as_imesh_face(
*/
static Array<Face *> polyfill_triangulate_poly(Face *f, IMeshArena *arena)
{
/* Similar to loop body in BM_mesh_calc_tesselation. */
/* Similar to loop body in #BM_mesh_calc_tessellation. */
int flen = f->size();
BLI_assert(flen > 4);
if (!f->plane_populated()) {
@ -1946,7 +1946,7 @@ static Array<Face *> polyfill_triangulate_poly(Face *f, IMeshArena *arena)
float(*projverts)[2];
unsigned int(*tris)[3];
const int totfilltri = flen - 2;
/* Prepare projected vertices and array to receive triangles in tesselation. */
/* Prepare projected vertices and array to receive triangles in tessellation. */
tris = static_cast<unsigned int(*)[3]>(MEM_malloc_arrayN(totfilltri, sizeof(*tris), __func__));
projverts = static_cast<float(*)[2]>(MEM_malloc_arrayN(flen, sizeof(*projverts), __func__));
axis_dominant_v3_to_m3_negate(axis_mat, no);
@ -1956,7 +1956,7 @@ static Array<Face *> polyfill_triangulate_poly(Face *f, IMeshArena *arena)
mul_v2_m3v3(projverts[j], axis_mat, co);
}
BLI_polyfill_calc(projverts, flen, 1, tris);
/* Put tesselation triangles into Face form. Record original edges where they exist. */
/* Put tessellation triangles into Face form. Record original edges where they exist. */
Array<Face *> ans(totfilltri);
for (int t = 0; t < totfilltri; ++t) {
unsigned int *tri = tris[t];
@ -2098,7 +2098,7 @@ IMesh triangulate_polymesh(IMesh &imesh, IMeshArena *arena)
constexpr int estimated_tris_per_face = 3;
face_tris.reserve(estimated_tris_per_face * imesh.face_size());
for (Face *f : imesh.faces()) {
/* Tessellate face f, following plan similar to #BM_face_calc_tesselation. */
/* Tessellate face f, following plan similar to #BM_face_calc_tessellation. */
int flen = f->size();
if (flen == 3) {
face_tris.append(f);

View File

@ -1382,11 +1382,11 @@ static bool ui_but_event_property_operator_string(const bContext *C,
else {
/* special exceptions for common nested data in editors... */
if (RNA_struct_is_a(ptr->type, &RNA_DopeSheet)) {
/* dopesheet filtering options... */
/* Dope-sheet filtering options. */
data_path = BLI_sprintfN("space_data.dopesheet.%s", RNA_property_identifier(prop));
}
else if (RNA_struct_is_a(ptr->type, &RNA_FileSelectParams)) {
/* Filebrowser options... */
/* File-browser options. */
data_path = BLI_sprintfN("space_data.params.%s", RNA_property_identifier(prop));
}
}

View File

@ -4700,7 +4700,7 @@ static int ui_do_but_EXIT(bContext *C, uiBut *but, uiHandleButtonData *data, con
if (ELEM(event->type, LEFTMOUSE, EVT_PADENTER, EVT_RETKEY) && event->val == KM_PRESS) {
int ret = WM_UI_HANDLER_BREAK;
/* XXX (a bit ugly) Special case handling for filebrowser drag button */
/* XXX: (a bit ugly) Special case handling for file-browser drag button. */
if (but->dragpoin && but->imb && ui_but_contains_point_px_icon(but, data->region, event)) {
ret = WM_UI_HANDLER_CONTINUE;
}

View File

@ -1844,7 +1844,7 @@ View2D *UI_view2d_fromcontext(const bContext *C)
return &(region->v2d);
}
/* same as above, but it returns regionwindow. Utility for pulldowns or buttons */
/* Same as above, but it returns region-window. Utility for pull-downs or buttons. */
View2D *UI_view2d_fromcontext_rwin(const bContext *C)
{
ScrArea *area = CTX_wm_area(C);

View File

@ -1768,7 +1768,7 @@ static float project_paint_uvpixel_mask(const ProjPaintState *ps,
angle_cos = dot_v3v3(viewDirPersp, no);
}
/* If backface culling is disabled, allow painting on back faces. */
/* If back-face culling is disabled, allow painting on back faces. */
if (!ps->do_backfacecull) {
angle_cos = fabsf(angle_cos);
}
@ -4358,7 +4358,7 @@ static void project_paint_prepare_all_faces(ProjPaintState *ps,
#endif // PROJ_DEBUG_WINCLIP
/* backface culls individual triangles but mask normal will use polygon */
/* Back-face culls individual triangles but mask normal will use polygon. */
if (ps->do_backfacecull) {
if (ps->do_mask_normal) {
if (prev_poly != lt->poly) {

View File

@ -2924,7 +2924,7 @@ static void filelist_readjob_main_recursive(Main *bmain, FileList *filelist)
ListBase *lb;
int a, fake, idcode, ok, totlib, totbl;
// filelist->type = FILE_MAIN; /* XXX TODO: add modes to filebrowser */
// filelist->type = FILE_MAIN; /* XXX TODO: add modes to file-browser */
BLI_assert(filelist->filelist.entries == NULL);

View File

@ -3731,7 +3731,7 @@ static void outliner_update_viewable_area(ARegion *region,
}
/* ****************************************************** */
/* Main Entrypoint - Draw contents of Outliner editor */
/* Main Entry-point - Draw contents of Outliner editor */
void draw_outliner(const bContext *C)
{

View File

@ -966,7 +966,7 @@ void OUTLINER_OT_lib_relocate(wmOperatorType *ot)
/* XXX This does not work with several items
* (it is only called once in the end, due to the 'deferred'
* filebrowser invocation through event system...). */
* file-browser invocation through event system...). */
void lib_relocate_fn(bContext *C,
ReportList *UNUSED(reports),
Scene *UNUSED(scene),

View File

@ -530,7 +530,7 @@ void ED_view3d_persp_switch_from_camera(const Depsgraph *depsgraph,
}
/**
* Action to take when rotating the view,
* handle auto-persp and logic for switching out of views.
* handle auto-perspective and logic for switching out of views.
*
* shared with NDOF.
*/

View File

@ -170,7 +170,7 @@ enum {
TD_BEZTRIPLE = 1 << 8,
/** when this is set, don't apply translation changes to this element */
TD_NO_LOC = 1 << 9,
/** For Graph Editor autosnap, indicates that point should not undergo autosnapping */
/** For Graph Editor auto-snap, indicates that point should not undergo auto-snapping. */
TD_NOTIMESNAP = 1 << 10,
/** For Graph Editor - curves that can only have int-values
* need their keyframes tagged with this. */

View File

@ -173,7 +173,7 @@ static void deformStroke(GpencilModifierData *md,
if (mmd->mode != GPPAINT_MODE_STROKE) {
float fill_factor = mmd->factor;
/* Use weightened factor. */
/* Use weighted factor. */
if (mmd->flag & GP_TINT_WEIGHT_FACTOR) {
/* Use first point for weight. */
MDeformVert *dvert_fill = (gps->dvert != NULL) ? &gps->dvert[0] : NULL;

View File

@ -4449,7 +4449,7 @@ static void rna_generate(BlenderRNA *brna, FILE *f, const char *filename, const
fprintf(f, "#pragma GCC diagnostic ignored \"-Wunused-parameter\"\n\n");
#endif
fprintf(f, "/* Autogenerated Functions */\n\n");
fprintf(f, "/* Auto-generated Functions. */\n\n");
for (ds = DefRNA.structs.first; ds; ds = ds->cont.next) {
if (!filename || ds->filename == filename) {

View File

@ -427,7 +427,7 @@ static Mesh *arrayModifier_doArray(ArrayModifierData *amd,
}
}
/* Build up offset array, cumulating all settings options */
/* Build up offset array, accumulating all settings options. */
unit_m4(offset);
src_mvert = mesh->mvert;

View File

@ -126,7 +126,7 @@ static std::unique_ptr<CurveEval> create_point_circle_curve(
const float theta_step = ((2 * M_PI) / (float)resolution);
for (const int i : IndexRange(resolution)) {
/* Formula for a circle around a point and 2 unit vectors perpendicular.
/* Formula for a circle around a point and 2 unit vectors perpendicular
* to each other and the axis of the circle from:
* https://math.stackexchange.com/questions/73237/parametric-equation-of-a-circle-in-3d-space
*/