Cleanup: spelling, update function name in comments

This commit is contained in:
Campbell Barton 2020-09-13 15:00:52 +10:00
parent 1509d2ba7d
commit b52aeaadfb
6 changed files with 10 additions and 10 deletions

View File

@ -482,7 +482,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
/* Initialise additional velocity parameter for CacheFiles. */
/* Initialize additional velocity parameter for #CacheFile's. */
if (!DNA_struct_elem_find(
fd->filesdna, "MeshSeqCacheModifierData", "float", "velocity_scale")) {
for (Object *object = bmain->objects.first; object != NULL; object = object->id.next) {

View File

@ -494,7 +494,7 @@ bool BM_face_split_edgenet(BMesh *bm,
}
/* These arrays used to be stack memory, however they can be
* large for single faces with complex edgenets, see: T65980. */
* large for single faces with complex edge-nets, see: T65980. */
/* over-alloc (probably 2-4 is only used in most cases), for the biggest-fan */
edge_order = MEM_mallocN(sizeof(*edge_order) * edge_order_len, __func__);
@ -1650,8 +1650,8 @@ finally:
{
struct TempVertPair *tvp = temp_vert_pairs.list;
do {
/* we must _never_ create connections here
* (inface the islands can't have a connection at all) */
/* We must _never_ create connections here
* (in case the islands can't have a connection at all). */
BLI_assert(BM_edge_exists(tvp->v_orig, tvp->v_temp) == NULL);
} while ((tvp = tvp->next));
}

View File

@ -34,7 +34,7 @@ struct GPUTexture;
/* *********** LISTS *********** */
/* GPUViewport.storage
* Is freed everytime the viewport engine changes */
* Is freed every time the viewport engine changes. */
typedef struct IMAGE_PassList {
DRWPass *image_pass;
} IMAGE_PassList;

View File

@ -319,7 +319,7 @@ void GPU_force_state(void)
/** \} */
/* -------------------------------------------------------------------- */
/** \name Synchronisation Utils
/** \name Synchronization Utils
* \{ */
void GPU_memory_barrier(eGPUBarrier barrier)

View File

@ -420,10 +420,10 @@ static int add_name(const char *str)
}
if (str[0] == '(' && str[1] == '*') {
/* we handle function pointer and special array cases here, e.g.
* void (*function)(...) and float (*array)[..]. the array case
/* We handle function pointer and special array cases here, e.g.
* `void (*function)(...)` and `float (*array)[..]`. the array case
* name is still converted to (array *)() though because it is that
* way in old dna too, and works correct with elementsize() */
* way in old DNA too, and works correct with #DNA_elem_size_nr. */
int isfuncptr = (strchr(str + 1, '(')) != NULL;
DEBUG_PRINTF(3, "\t\t\t\t*** Function pointer or multidim array pointer found\n");

View File

@ -81,7 +81,7 @@ static bool meshcache_read_pc2_head(FILE *fp,
}
/**
* Gets the index frange and factor
* Gets the index range and factor
*
* currently same as for MDD
*/