Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-25 08:24:37 +0300
committerCampbell Barton <campbell@blender.org>2022-09-25 08:24:37 +0300
commit26f330ea4ca02f2bc3e78381d90a17d9d0c66337 (patch)
tree032e05c52f47eaa65087da482cb7d0bdf9e08ee5
parent4e7983e0732015d9fe52ecd12e203a230b30af16 (diff)
Cleanup: format, spelling in comments
-rw-r--r--source/blender/blenfont/intern/blf_thumbs.c2
-rw-r--r--source/blender/blenloader/intern/versioning_300.cc2
-rw-r--r--source/blender/depsgraph/DEG_depsgraph_query.h4
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c8
-rw-r--r--source/blender/editors/space_view3d/space_view3d.cc8
-rw-r--r--source/blender/nodes/shader/node_shader_tree.cc2
6 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/blenfont/intern/blf_thumbs.c b/source/blender/blenfont/intern/blf_thumbs.c
index 8ad880edf30..110ef97fd3a 100644
--- a/source/blender/blenfont/intern/blf_thumbs.c
+++ b/source/blender/blenfont/intern/blf_thumbs.c
@@ -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"
diff --git a/source/blender/blenloader/intern/versioning_300.cc b/source/blender/blenloader/intern/versioning_300.cc
index 9ea662ac000..7f450cb2cff 100644
--- a/source/blender/blenloader/intern/versioning_300.cc
+++ b/source/blender/blenloader/intern/versioning_300.cc
@@ -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);
}
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h
index 81c264d70a3..d832676fe2c 100644
--- a/source/blender/depsgraph/DEG_depsgraph_query.h
+++ b/source/blender/depsgraph/DEG_depsgraph_query.h
@@ -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.
*/
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 6bb1134e218..a07dc63b418 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -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;
}
diff --git a/source/blender/editors/space_view3d/space_view3d.cc b/source/blender/editors/space_view3d/space_view3d.cc
index 1b168ca1dda..40504801f67 100644
--- a/source/blender/editors/space_view3d/space_view3d.cc
+++ b/source/blender/editors/space_view3d/space_view3d.cc
@@ -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';
}
diff --git a/source/blender/nodes/shader/node_shader_tree.cc b/source/blender/nodes/shader/node_shader_tree.cc
index a6d2e954a0c..cb9fbc8407c 100644
--- a/source/blender/nodes/shader/node_shader_tree.cc
+++ b/source/blender/nodes/shader/node_shader_tree.cc
@@ -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;
}