Cleanup: spelling

This commit is contained in:
Campbell Barton 2021-07-29 10:52:08 +10:00
parent 8aa1c0a326
commit 0358951b9e
2 changed files with 13 additions and 9 deletions

View File

@ -157,7 +157,7 @@ void BKE_main_idmap_insert_id(struct IDNameLib_Map *id_map, ID *id)
const short id_type = GS(id->name);
struct IDNameLib_TypeMap *type_map = main_idmap_from_idcode(id_map, id_type);
/* No need to do anything if map has not been lazyly created yet. */
/* No need to do anything if map has not been lazily created yet. */
if (LIKELY(type_map != NULL) && type_map->map != NULL) {
BLI_assert(id_map->type_maps_keys_pool != NULL);
@ -187,7 +187,7 @@ void BKE_main_idmap_remove_id(struct IDNameLib_Map *id_map, ID *id)
const short id_type = GS(id->name);
struct IDNameLib_TypeMap *type_map = main_idmap_from_idcode(id_map, id_type);
/* No need to do anything if map has not been lazyly created yet. */
/* No need to do anything if map has not been lazily created yet. */
if (LIKELY(type_map != NULL) && type_map->map != NULL) {
BLI_assert(id_map->type_maps_keys_pool != NULL);

View File

@ -942,9 +942,11 @@ struct LineartCache;
typedef struct LineartGpencilModifierData {
GpencilModifierData modifier;
short edge_types; /* line type enable flags, bits in eLineartEdgeFlag */
/** Line type enable flags, bits in #eLineartEdgeFlag. */
short edge_types;
char source_type; /* Object or Collection, from eLineartGpencilModifierSource */
/** Object or Collection, from #eLineartGpencilModifierSource. */
char source_type;
char use_multiple_levels;
short level_start;
@ -963,16 +965,18 @@ typedef struct LineartGpencilModifierData {
char source_vertex_group[64];
char vgname[64];
/* Camera focal length is divided by (1 + overscan), before caluclation, which give a wider FOV,
* this doesn't change coordinates range internally (-1, 1), but makes the caluclated frame
/**
* Camera focal length is divided by `1 + overscan`, before calculation, which give a wider FOV,
* this doesn't change coordinates range internally (-1, 1), but makes the calculated frame
* bigger than actual output. This is for the easier shifting calculation. A value of 0.5 means
* the "internal" focal length become 2/3 of the actual camera. */
* the "internal" focal length become 2/3 of the actual camera.
*/
float overscan;
float opacity;
short thickness;
unsigned char mask_switches; /* eLineartGpencilMaskSwitches */
unsigned char mask_switches; /* #eLineartGpencilMaskSwitches */
unsigned char material_mask_bits;
unsigned char intersection_mask;
@ -990,7 +994,7 @@ typedef struct LineartGpencilModifierData {
/* Ported from SceneLineArt flags. */
int calculation_flags;
/* eLineArtGPencilModifierFlags, modifier internal state. */
/* #eLineArtGPencilModifierFlags, modifier internal state. */
int flags;
/* Runtime data. */