Cleanup: format, spelling in comments
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
#include FT_FREETYPE_H
|
||||
#include FT_ADVANCES_H /* For FT_Get_Advance */
|
||||
#include FT_TRUETYPE_IDS_H /* Codepoint coverage constants. */
|
||||
#include FT_TRUETYPE_IDS_H /* Code-point coverage constants. */
|
||||
#include FT_TRUETYPE_TABLES_H /* For TT_OS2 */
|
||||
|
||||
#include "BLI_listbase.h"
|
||||
|
@@ -1926,7 +1926,7 @@ static void version_geometry_nodes_replace_transfer_attribute_node(bNodeTree *nt
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* The storage must be feeed manually because the node type isn't defined anymore. */
|
||||
/* The storage must be freed manually because the node type isn't defined anymore. */
|
||||
MEM_freeN(node->storage);
|
||||
nodeRemoveNode(NULL, ntree, node, false);
|
||||
}
|
||||
|
@@ -145,9 +145,9 @@ ENUM_OPERATORS(DegIterFlag, DEG_ITER_OBJECT_FLAG_DUPLI)
|
||||
typedef struct DEGObjectIterSettings {
|
||||
struct Depsgraph *depsgraph;
|
||||
/**
|
||||
* Bitfield of the #DegIterFlag.
|
||||
* Bit-field of the #DegIterFlag.
|
||||
*
|
||||
* NOTE: Be careful with DEG_ITER_OBJECT_FLAG_LINKED_INDIRECTLY objects.
|
||||
* NOTE: Be careful with #DEG_ITER_OBJECT_FLAG_LINKED_INDIRECTLY objects.
|
||||
* Although they are available they have no overrides (collection_properties)
|
||||
* and will crash if you try to access it.
|
||||
*/
|
||||
|
@@ -353,7 +353,7 @@ static void gpencil_strokes_array_size(tGPDfill *tgpf)
|
||||
}
|
||||
}
|
||||
|
||||
/* Load all strokes to be procesed by extend lines. */
|
||||
/** Load all strokes to be processed by extend lines. */
|
||||
static void gpencil_load_array_strokes(tGPDfill *tgpf)
|
||||
{
|
||||
Object *ob = tgpf->ob;
|
||||
@@ -563,7 +563,7 @@ static void gpencil_cut_extensions(tGPDfill *tgpf)
|
||||
bGPDspoint *extreme_b = &gps_b->points[1];
|
||||
|
||||
/* Check if extreme points are near. This case is when the
|
||||
* extendend lines are colinear or parallel and close together. */
|
||||
* extended lines are co-linear or parallel and close together. */
|
||||
const float gap_pixsize_sq = 25.0f;
|
||||
float intersection3D[3];
|
||||
if (len_squared_v2v2(a2xy, b2xy) <= gap_pixsize_sq) {
|
||||
@@ -583,7 +583,7 @@ static void gpencil_cut_extensions(tGPDfill *tgpf)
|
||||
copy_v3_v3(&extreme_a->x, intersection3D);
|
||||
copy_v3_v3(&extreme_b->x, intersection3D);
|
||||
set_stroke_collide(gps_a, gps_b, connection_dist);
|
||||
break;
|
||||
break;
|
||||
}
|
||||
/* Check if extension extreme is near of the origin of any other extension. */
|
||||
if (len_squared_v2v2(a2xy, b1xy) <= gap_pixsize_sq) {
|
||||
@@ -2806,7 +2806,7 @@ static int gpencil_fill_modal(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
/* Clean temp strokes. */
|
||||
stroke_array_free(tgpf);
|
||||
|
||||
/* Toogle mode */
|
||||
/* Toggle mode. */
|
||||
if (tgpf->fill_extend_mode == GP_FILL_EMODE_EXTEND) {
|
||||
tgpf->fill_extend_mode = GP_FILL_EMODE_RADIUS;
|
||||
}
|
||||
|
@@ -178,9 +178,9 @@ void ED_view3d_init_mats_rv3d_gl(const struct Object *ob, struct RegionView3D *r
|
||||
{
|
||||
ED_view3d_init_mats_rv3d(ob, rv3d);
|
||||
|
||||
/* we have to multiply instead of loading viewmatob to make
|
||||
* it work with duplis using displists, otherwise it will
|
||||
* override the dupli-matrix */
|
||||
/* We have to multiply instead of loading `viewmatob` to make
|
||||
* it work with duplis using display-lists, otherwise it will
|
||||
* override the dupli-matrix. */
|
||||
GPU_matrix_mul(ob->obmat);
|
||||
}
|
||||
|
||||
@@ -1929,7 +1929,7 @@ static void view3d_id_remap_v3d_ob_centers(View3D *v3d, const struct IDRemapper
|
||||
{
|
||||
if (BKE_id_remapper_apply(mappings, (ID **)&v3d->ob_center, ID_REMAP_APPLY_DEFAULT) ==
|
||||
ID_REMAP_RESULT_SOURCE_UNASSIGNED) {
|
||||
/* Otherwise, bonename may remain valid...
|
||||
/* Otherwise, bone-name may remain valid...
|
||||
* We could be smart and check this, too? */
|
||||
v3d->ob_center_bone[0] = '\0';
|
||||
}
|
||||
|
@@ -563,7 +563,7 @@ static bNode *ntree_shader_copy_branch(bNodeTree *ntree,
|
||||
void (*callback)(bNode *node, int user_data),
|
||||
int user_data)
|
||||
{
|
||||
/* Init tmp flag. */
|
||||
/* Initialize `tmp_flag`. */
|
||||
LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
|
||||
node->tmp_flag = -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user