Cleanup: spelling in comments, correct doxy slashes, replace '/w'
This commit is contained in:
parent
a5d65200c2
commit
da3d1e9165
|
@ -201,7 +201,7 @@ static void makeAttribList(std::vector<NSOpenGLPixelFormatAttribute> &attribs,
|
|||
attribs.push_back(NSOpenGLPFAOpenGLProfile);
|
||||
attribs.push_back(NSOpenGLProfileVersion3_2Core);
|
||||
|
||||
/* Pixel Format Attributes for the windowed NSOpenGLContext. */
|
||||
/* Pixel Format Attributes for the windowed #NSOpenGLContext. */
|
||||
attribs.push_back(NSOpenGLPFADoubleBuffer);
|
||||
|
||||
if (softwareGL) {
|
||||
|
@ -212,7 +212,7 @@ static void makeAttribList(std::vector<NSOpenGLPixelFormatAttribute> &attribs,
|
|||
attribs.push_back(NSOpenGLPFAAccelerated);
|
||||
attribs.push_back(NSOpenGLPFANoRecovery);
|
||||
|
||||
/* Attempt to initialise device with extended sampler limit.
|
||||
/* Attempt to initialize device with extended sampler limit.
|
||||
* Resolves EEVEE purple rendering artifacts on macOS. */
|
||||
if (increasedSamplerLimit) {
|
||||
attribs.push_back((NSOpenGLPixelFormatAttribute)400);
|
||||
|
@ -267,7 +267,7 @@ GHOST_TSuccess GHOST_ContextCGL::initializeDrawingContext()
|
|||
pixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:&attribs[0]];
|
||||
if (pixelFormat == nil) {
|
||||
/* If pixel format creation fails when testing increased sampler limit,
|
||||
* attempt intialisation again with feature disabled, otherwise, fail. */
|
||||
* attempt initialization again with feature disabled, otherwise, fail. */
|
||||
if (increasedSamplerLimit) {
|
||||
increasedSamplerLimit = false;
|
||||
continue;
|
||||
|
|
|
@ -401,7 +401,7 @@ void BKE_gpencil_stroke_set_random_color(struct bGPDstroke *gps);
|
|||
|
||||
/**
|
||||
* Join two strokes using the shortest distance (reorder stroke if necessary).
|
||||
* \param auto_flip: Flip the stroke if the join between two strokes is not end->start points.
|
||||
* \param auto_flip: Flip the stroke if the join between two strokes is not end->start points.
|
||||
*/
|
||||
void BKE_gpencil_stroke_join(struct bGPDstroke *gps_a,
|
||||
struct bGPDstroke *gps_b,
|
||||
|
|
|
@ -242,7 +242,7 @@ void BKE_collection_blend_read_data(BlendDataReader *reader, Collection *collect
|
|||
*
|
||||
* NOTE: Using do_version is not a solution here, since this code will be called before any
|
||||
* do_version takes place. Keeping it here also ensures future (or unknown existing) similar
|
||||
* bugs won't go easily unoticed. */
|
||||
* bugs won't go easily unnoticed. */
|
||||
CLOG_WARN(&LOG,
|
||||
"Fixing root node tree '%s' owned by '%s' missing EMBEDDED tag, please consider "
|
||||
"re-saving your (startup) file",
|
||||
|
@ -483,8 +483,8 @@ void BKE_collection_add_from_collection(Main *bmain,
|
|||
is_instantiated = true;
|
||||
}
|
||||
else if (!is_instantiated && collection_find_child(collection, collection_dst)) {
|
||||
/* If given collection_dst is already instantiated in scene, even if its 'model' src one is
|
||||
* not, do not add it to master scene collection. */
|
||||
/* If given collection_dst is already instantiated in scene, even if its 'model'
|
||||
* collection_src one is not, do not add it to master scene collection. */
|
||||
is_instantiated = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -413,7 +413,7 @@ struct PartialUpdateRegisterImpl {
|
|||
}
|
||||
|
||||
/**
|
||||
* /brief Check if data is available to construct the update tiles for the given
|
||||
* \brief Check if data is available to construct the update tiles for the given
|
||||
* changeset_id.
|
||||
*
|
||||
* The update tiles can be created when changeset id is between
|
||||
|
|
|
@ -660,7 +660,7 @@ void ntreeBlendReadData(BlendDataReader *reader, ID *owner_id, bNodeTree *ntree)
|
|||
*
|
||||
* NOTE: Using do_version is not a solution here, since this code will be called before any
|
||||
* do_version takes place. Keeping it here also ensures future (or unknown existing) similar
|
||||
* bugs won't go easily unoticed. */
|
||||
* bugs won't go easily unnoticed. */
|
||||
CLOG_WARN(&LOG,
|
||||
"Fixing root node tree '%s' owned by '%s' missing EMBEDDED tag, please consider "
|
||||
"re-saving your (startup) file",
|
||||
|
@ -913,9 +913,9 @@ void ntreeBlendReadLib(struct BlendLibReader *reader, struct bNodeTree *ntree)
|
|||
lib_link_node_sockets(reader, lib, &ntree->inputs);
|
||||
lib_link_node_sockets(reader, lib, &ntree->outputs);
|
||||
|
||||
/* Set node->typeinfo pointers. This is done in lib linking, after the
|
||||
/* Set `node->typeinfo` pointers. This is done in lib linking, after the
|
||||
* first versioning that can change types still without functions that
|
||||
* update the typeinfo pointers. Versioning after lib linking needs
|
||||
* update the `typeinfo` pointers. Versioning after lib linking needs
|
||||
* these top be valid. */
|
||||
ntreeSetTypes(nullptr, ntree);
|
||||
|
||||
|
@ -1072,7 +1072,7 @@ static void node_add_sockets_from_type(bNodeTree *ntree, bNode *node, bNodeType
|
|||
}
|
||||
|
||||
/* NOTE: This function is called to initialize node data based on the type.
|
||||
* The bNodeType may not be registered at creation time of the node,
|
||||
* The #bNodeType may not be registered at creation time of the node,
|
||||
* so this can be delayed until the node type gets registered.
|
||||
*/
|
||||
static void node_init(const struct bContext *C, bNodeTree *ntree, bNode *node)
|
||||
|
|
|
@ -2416,7 +2416,7 @@ ParticleSystem *BKE_object_copy_particlesystem(ParticleSystem *psys, const int f
|
|||
}
|
||||
|
||||
/* XXX(@campbellbarton): from reading existing code this seems correct but intended usage of
|
||||
* point-cache should /w cloth should be added in 'ParticleSystem'. */
|
||||
* point-cache should with cloth should be added in 'ParticleSystem'. */
|
||||
if (psysn->clmd) {
|
||||
psysn->clmd->point_cache = psysn->pointcache;
|
||||
}
|
||||
|
|
|
@ -5418,7 +5418,7 @@ void BKE_particle_system_blend_read_lib(BlendLibReader *reader,
|
|||
|
||||
if (psys->clmd) {
|
||||
/* XXX(@campbellbarton): from reading existing code this seems correct but intended usage
|
||||
* of pointcache /w cloth should be added in 'ParticleSystem'. */
|
||||
* of point-cache with cloth should be added in #ParticleSystem. */
|
||||
psys->clmd->point_cache = psys->pointcache;
|
||||
psys->clmd->ptcaches.first = psys->clmd->ptcaches.last = NULL;
|
||||
BLO_read_id_address(reader, id->lib, &psys->clmd->coll_parms->group);
|
||||
|
@ -5426,7 +5426,7 @@ void BKE_particle_system_blend_read_lib(BlendLibReader *reader,
|
|||
}
|
||||
}
|
||||
else {
|
||||
/* particle modifier must be removed before particle system */
|
||||
/* Particle modifier must be removed before particle system. */
|
||||
ParticleSystemModifierData *psmd = psys_get_modifier(ob, psys);
|
||||
BKE_modifier_remove_from_list(ob, (ModifierData *)psmd);
|
||||
BKE_modifier_free((ModifierData *)psmd);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* A `blender::Pool` allows fast allocation and deallocation of many elements of the same type.
|
||||
*
|
||||
* It is compatible with types that are not moveable.
|
||||
* It is compatible with types that are not movable.
|
||||
*
|
||||
* Freed elements memory will be reused by next allocations.
|
||||
* Elements are allocated in chunks to reduce memory fragmentation and avoid reallocation.
|
||||
|
|
|
@ -354,7 +354,7 @@ typedef enum {
|
|||
UI_BTYPE_LABEL = 20 << 9,
|
||||
UI_BTYPE_KEY_EVENT = 24 << 9,
|
||||
UI_BTYPE_HSVCUBE = 26 << 9,
|
||||
/** menu (often used in headers), **_MENU /w different draw-type */
|
||||
/** Menu (often used in headers), `*_MENU` with different draw-type. */
|
||||
UI_BTYPE_PULLDOWN = 27 << 9,
|
||||
UI_BTYPE_ROUNDBOX = 28 << 9,
|
||||
UI_BTYPE_COLORBAND = 30 << 9,
|
||||
|
|
|
@ -491,15 +491,15 @@ static bool init_structDNA(SDNA *sdna, bool do_endian_swap, const char **r_error
|
|||
return false;
|
||||
}
|
||||
|
||||
/* finally pointer_size: use struct ListBase to test it, never change the size of it! */
|
||||
/* finally pointer_size: use struct #ListBase to test it, never change the size of it! */
|
||||
SDNA_Struct *struct_info = sdna->structs[nr];
|
||||
/* weird; i have no memory of that... I think I used sizeof(void *) before... (ton) */
|
||||
/* Weird; I have no memory of that... I think I used `sizeof(void *)` before... (ton). */
|
||||
|
||||
sdna->pointer_size = sdna->types_size[struct_info->type] / 2;
|
||||
|
||||
if (struct_info->members_len != 2 || (!ELEM(sdna->pointer_size, 4, 8))) {
|
||||
*r_error_message = "ListBase struct error! Needs it to calculate pointerize.";
|
||||
/* well, at least sizeof(ListBase) is error proof! (ton) */
|
||||
*r_error_message = "ListBase struct error! Needs it to calculate pointer-size.";
|
||||
/* Well, at least `sizeof(ListBase)` is error proof! (ton). */
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -676,9 +676,8 @@ const char *DNA_struct_get_compareflags(const SDNA *oldsdna, const SDNA *newsdna
|
|||
BLI_assert(compare_flags[a] != SDNA_CMP_UNKNOWN);
|
||||
}
|
||||
|
||||
/* first struct in util.h is struct Link, this is skipped in compare_flags (als # 0).
|
||||
* was a bug, and this way dirty patched! Solve this later....
|
||||
*/
|
||||
/* First struct in `util.h` is struct Link, this is skipped in compare_flags (als # 0).
|
||||
* was a bug, and this way dirty patched! Solve this later. */
|
||||
compare_flags[0] = SDNA_CMP_EQUAL;
|
||||
|
||||
/* This code can be enabled to see which structs have changed. */
|
||||
|
@ -852,7 +851,7 @@ static void cast_pointer_64_to_32(const int array_len,
|
|||
}
|
||||
|
||||
/**
|
||||
* Equality test on name and oname excluding any array-size suffix.
|
||||
* Equality test on name and `oname` excluding any array-size suffix.
|
||||
*/
|
||||
static bool elem_streq(const char *name, const char *oname)
|
||||
{
|
||||
|
@ -879,7 +878,7 @@ static bool elem_streq(const char *name, const char *oname)
|
|||
*
|
||||
* \param type: Current field type name.
|
||||
* \param name: Current field name.
|
||||
* \param old: Pointer to struct information in sdna.
|
||||
* \param old: Pointer to struct information in `sdna`.
|
||||
* \return true when existing, false otherwise..
|
||||
*/
|
||||
static bool elem_exists_impl(
|
||||
|
@ -1042,7 +1041,7 @@ void DNA_struct_switch_endian(const SDNA *sdna, int struct_nr, char *data)
|
|||
}
|
||||
case SDNA_TYPE_INT:
|
||||
case SDNA_TYPE_FLOAT: {
|
||||
/* NOTE: intentionally ignore long/ulong, because these could be 4 or 8 bytes.
|
||||
/* NOTE: intentionally ignore `long/ulong`, because these could be 4 or 8 bytes.
|
||||
* Fortunately, we only use these types for runtime variables and only once for a
|
||||
* struct type that is no longer used. */
|
||||
BLI_endian_switch_int32_array((int32_t *)member_data, member_array_length);
|
||||
|
@ -1061,7 +1060,7 @@ void DNA_struct_switch_endian(const SDNA *sdna, int struct_nr, char *data)
|
|||
break;
|
||||
}
|
||||
case STRUCT_MEMBER_CATEGORY_POINTER: {
|
||||
/* See readfile.c (#bh4_from_bh8 swap endian argument),
|
||||
/* See `readfile.c` (#bh4_from_bh8 swap endian argument),
|
||||
* this is only done when reducing the size of a pointer from 4 to 8. */
|
||||
if (sizeof(void *) < 8) {
|
||||
if (sdna->pointer_size == 8) {
|
||||
|
@ -1304,7 +1303,7 @@ static void init_reconstruct_step_for_member(const SDNA *oldsdna,
|
|||
enum eSDNA_StructCompare compare_flag = compare_flags[old_struct_nr];
|
||||
BLI_assert(compare_flag != SDNA_CMP_REMOVED);
|
||||
if (compare_flag == SDNA_CMP_EQUAL) {
|
||||
/* The old and new members are identical, just do a memcpy. */
|
||||
/* The old and new members are identical, just do a #memcpy. */
|
||||
r_step->type = RECONSTRUCT_STEP_MEMCPY;
|
||||
r_step->data.memcpy.new_offset = new_member_offset;
|
||||
r_step->data.memcpy.old_offset = old_member_offset;
|
||||
|
@ -1333,7 +1332,7 @@ static void init_reconstruct_step_for_member(const SDNA *oldsdna,
|
|||
}
|
||||
case STRUCT_MEMBER_CATEGORY_PRIMITIVE: {
|
||||
if (STREQ(new_type_name, old_type_name)) {
|
||||
/* Primitives with the same name cannot be different, so just do a memcpy. */
|
||||
/* Primitives with the same name cannot be different, so just do a #memcpy. */
|
||||
r_step->type = RECONSTRUCT_STEP_MEMCPY;
|
||||
r_step->data.memcpy.new_offset = new_member_offset;
|
||||
r_step->data.memcpy.old_offset = old_member_offset;
|
||||
|
@ -1352,7 +1351,7 @@ static void init_reconstruct_step_for_member(const SDNA *oldsdna,
|
|||
}
|
||||
case STRUCT_MEMBER_CATEGORY_POINTER: {
|
||||
if (newsdna->pointer_size == oldsdna->pointer_size) {
|
||||
/* The pointer size is the same, so just do a memcpy. */
|
||||
/* The pointer size is the same, so just do a #memcpy. */
|
||||
r_step->type = RECONSTRUCT_STEP_MEMCPY;
|
||||
r_step->data.memcpy.new_offset = new_member_offset;
|
||||
r_step->data.memcpy.old_offset = old_member_offset;
|
||||
|
@ -1386,7 +1385,7 @@ static void print_reconstruct_step(ReconstructStep *step, const SDNA *oldsdna, c
|
|||
{
|
||||
switch (step->type) {
|
||||
case RECONSTRUCT_STEP_INIT_ZERO: {
|
||||
printf("init zero");
|
||||
printf("initialize zero");
|
||||
break;
|
||||
}
|
||||
case RECONSTRUCT_STEP_MEMCPY: {
|
||||
|
|
|
@ -393,10 +393,10 @@ static int add_name(const char *str)
|
|||
if (!isfuncptr) {
|
||||
/* multidimensional array pointer case */
|
||||
if (str[j] == 0) {
|
||||
DEBUG_PRINTF(3, "offsetting for multidim array pointer\n");
|
||||
DEBUG_PRINTF(3, "offsetting for multi-dimensional array pointer\n");
|
||||
}
|
||||
else {
|
||||
printf("Error during tokening multidim array pointer\n");
|
||||
printf("Error during tokenizing multi-dimensional array pointer\n");
|
||||
}
|
||||
}
|
||||
else if (str[j] == 0) {
|
||||
|
|
|
@ -1577,7 +1577,7 @@ static int rna_property_override_diff_propptr(Main *bmain,
|
|||
RNA_property_##_typename##_set((_ptr), (_prop), (_value)))
|
||||
|
||||
/**
|
||||
* /return `0` is matching, `-1` if `prop_a < prop_b`, `1` if `prop_a > prop_b`. Note that for
|
||||
* \return `0` is matching, `-1` if `prop_a < prop_b`, `1` if `prop_a > prop_b`. Note that for
|
||||
* unquantifiable properties (e.g. pointers or collections), return value should be interpreted as
|
||||
* a boolean (false == matching, true == not matching).
|
||||
*/
|
||||
|
|
|
@ -416,8 +416,8 @@ typedef struct wmNotifier {
|
|||
#define ND_POINTCACHE (28 << 16)
|
||||
#define ND_PARENT (29 << 16)
|
||||
#define ND_LOD (30 << 16)
|
||||
#define ND_DRAW_RENDER_VIEWPORT \
|
||||
(31 << 16) /* for camera & sequencer viewport update, also /w NC_SCENE */
|
||||
/** For camera & sequencer viewport update, also with #NC_SCENE. */
|
||||
#define ND_DRAW_RENDER_VIEWPORT (31 << 16)
|
||||
#define ND_SHADERFX (32 << 16)
|
||||
/* For updating motion paths in 3dview. */
|
||||
#define ND_DRAW_ANIMVIZ (33 << 16)
|
||||
|
|
Loading…
Reference in New Issue