Cleanup: spelling

This commit is contained in:
Campbell Barton 2020-07-10 11:41:14 +10:00
parent a0d3b60015
commit 3dd460aa7f
9 changed files with 15 additions and 14 deletions

View File

@ -91,7 +91,7 @@ class ResourceCollector : NonCopyable, NonMovable {
/**
* Pass ownership of some resource to the ResourceCollector. The given free function will be
* calld when the collector is destructed.
* called when the collector is destructed.
*/
void add(void *userdata, void (*free)(void *), const char *name)
{

View File

@ -427,7 +427,7 @@ BLI_INLINE double radical_inverse(unsigned int n)
{
double u = 0;
/* This reverse the bitwise representation
/* This reverse the bit-wise representation
* around the decimal point. */
for (double p = 0.5; n; p *= 0.5, n >>= 1) {
if (n & 1) {

View File

@ -280,7 +280,7 @@ void bmo_contextual_create_exec(BMesh *bm, BMOperator *op)
* last resort when all else fails.
*/
if (totv > 2) {
/* TODO, some of these vertes may be connected by edges,
/* TODO, some of these vertices may be connected by edges,
* this connectivity could be used rather than treating
* them as a bunch of isolated verts. */

View File

@ -2308,7 +2308,7 @@ bool ui_but_is_rna_valid(uiBut *but)
}
/**
* Checks if the button supports ctrl+mousewheel cycling
* Checks if the button supports cycling next/previous menu items (ctrl+mouse-wheel).
*/
bool ui_but_supports_cycling(const uiBut *but)
{

View File

@ -313,8 +313,8 @@ static void mesh_join_offset_face_sets_ID(const Mesh *mesh, int *face_set_offset
int max_face_set = 0;
for (int f = 0; f < mesh->totpoly; f++) {
/* As face sets enconde the visibility in the integer sign, the offset needs to be added or
* substracted depending on the initial sign of the integer to get the new ID. */
/* As face sets encode the visibility in the integer sign, the offset needs to be added or
* subtracted depending on the initial sign of the integer to get the new ID. */
if (abs(face_sets[f]) <= *face_set_offset) {
if (face_sets[f] > 0) {
face_sets[f] += *face_set_offset;

View File

@ -1426,7 +1426,7 @@ static void insert_seam_vert_array(const ProjPaintState *ps,
* Be tricky with flags, first 4 bits are #PROJ_FACE_SEAM0 to 4,
* last 4 bits are #PROJ_FACE_NOSEAM0 to 4. `1 << i` - where i is `(0..3)`.
*
* If we're multi-threadng, make sure threads are locked when this is called.
* If we're multi-threading, make sure threads are locked when this is called.
*/
static void project_face_seams_init(const ProjPaintState *ps,
MemArena *arena,

View File

@ -645,8 +645,9 @@ static void nla_draw_strip_text(AnimData *adt,
UI_view2d_text_cache_add_rectf(v2d, &rect, str, str_len, col);
}
/* add frame extents to cache of text-strings to draw in pixelspace
* for now, only used when transforming strips
/**
* Add frame extents to cache of text-strings to draw in pixel-space
* for now, only used when transforming strips.
*/
static void nla_draw_strip_frames_text(
NlaTrack *UNUSED(nlt), NlaStrip *strip, View2D *v2d, float UNUSED(yminc), float ymaxc)

View File

@ -200,7 +200,7 @@ typedef struct FlyInfo {
float grid;
/* compare between last state */
/** Used to accelerate when using the mousewheel a lot. */
/** Used to accelerate when using the mouse-wheel a lot. */
double time_lastwheel;
/** Time between draws. */
double time_lastdraw;
@ -614,8 +614,8 @@ static void flyEvent(FlyInfo *fly, const wmEvent *event)
fly->axis = -1;
}
else {
/* flip speed rather than stopping, game like motion,
* else increase like mousewheel if we're already moving in that direction */
/* Flip speed rather than stopping, game like motion,
* else increase like mouse-wheel if we're already moving in that direction. */
if (fly->speed < 0.0f) {
fly->speed = -fly->speed;
}

View File

@ -300,7 +300,7 @@ void constant_folding(MFNetwork &network, ResourceCollector &resources)
/** \} */
/* -------------------------------------------------------------------- */
/** \name Common Subnetwork Elimination
/** \name Common Sub-network Elimination
*
* \{ */
@ -462,7 +462,7 @@ static void relink_duplicate_nodes(MFNetwork &network,
}
/**
* Tries to detect duplicate subnetworks and eliminates them. This can help quite a lot when node
* Tries to detect duplicate sub-networks and eliminates them. This can help quite a lot when node
* groups were used to create the network.
*/
void common_subnetwork_elimination(MFNetwork &network)