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 /source/blender/editors
parent4e7983e0732015d9fe52ecd12e203a230b30af16 (diff)
Cleanup: format, spelling in comments
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c8
-rw-r--r--source/blender/editors/space_view3d/space_view3d.cc8
2 files changed, 8 insertions, 8 deletions
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';
}