[Bf-blender-cvs] [fea335fe8bd] master: Cleanup: spelling

Campbell Barton noreply at git.blender.org
Sat Feb 13 08:10:48 CET 2021


Commit: fea335fe8bd01675243953e41f59f156e44f1e94
Author: Campbell Barton
Date:   Sat Feb 13 17:44:51 2021 +1100
Branches: master
https://developer.blender.org/rBfea335fe8bd01675243953e41f59f156e44f1e94

Cleanup: spelling

===================================================================

M	source/blender/blenkernel/BKE_cloth.h
M	source/blender/blenkernel/intern/mesh_merge.c
M	source/blender/blenloader/intern/readfile.c
M	source/blender/blenloader/intern/versioning_260.c
M	source/blender/blenloader/intern/versioning_270.c
M	source/blender/draw/engines/eevee/eevee_sampling.c
M	source/blender/draw/engines/workbench/workbench_render.c
M	source/blender/editors/animation/anim_channels_defines.c
M	source/blender/editors/gpencil/gpencil_data.c
M	source/blender/editors/gpencil/gpencil_intern.h
M	source/blender/editors/gpencil/gpencil_paint.c
M	source/blender/editors/gpencil/gpencil_primitive.c
M	source/blender/editors/gpencil/gpencil_select.c
M	source/blender/editors/include/ED_keyframes_edit.h
M	source/blender/editors/include/UI_interface.h
M	source/blender/editors/interface/view2d.c
M	source/blender/editors/object/object_add.c
M	source/blender/editors/sculpt_paint/sculpt.c
M	source/blender/editors/space_clip/clip_buttons.c
M	source/blender/editors/space_clip/tracking_ops.c
M	source/blender/editors/space_file/filesel.c
M	source/blender/editors/space_outliner/space_outliner.c
M	source/blender/editors/space_view3d/view3d_gizmo_camera.c
M	source/blender/editors/transform/transform_snap.c
M	source/blender/io/collada/DocumentImporter.cpp
M	source/blender/makesdna/DNA_ID.h
M	source/blender/makesdna/DNA_action_types.h
M	source/blender/makesdna/DNA_armature_types.h
M	source/blender/makesdna/DNA_cloth_types.h
M	source/blender/makesdna/DNA_constraint_types.h
M	source/blender/makesdna/DNA_curve_types.h
M	source/blender/makesdna/DNA_material_types.h
M	source/blender/makesdna/DNA_meta_types.h
M	source/blender/makesdna/DNA_modifier_types.h
M	source/blender/makesdna/DNA_movieclip_types.h
M	source/blender/makesdna/DNA_node_types.h
M	source/blender/makesdna/DNA_object_force_types.h
M	source/blender/makesdna/DNA_particle_types.h
M	source/blender/makesdna/DNA_rigidbody_types.h
M	source/blender/makesdna/DNA_scene_types.h
M	source/blender/makesdna/DNA_screen_types.h
M	source/blender/makesdna/DNA_space_types.h
M	source/blender/makesdna/DNA_tracking_types.h
M	source/blender/makesdna/DNA_userdef_types.h
M	source/blender/makesrna/intern/rna_tracking.c
M	source/blender/windowmanager/intern/wm_toolsystem.c

===================================================================

diff --git a/source/blender/blenkernel/BKE_cloth.h b/source/blender/blenkernel/BKE_cloth.h
index e9267955d70..04fcdd6ed6f 100644
--- a/source/blender/blenkernel/BKE_cloth.h
+++ b/source/blender/blenkernel/BKE_cloth.h
@@ -131,13 +131,13 @@ typedef struct ClothVertex {
  * The definition of a spring.
  */
 typedef struct ClothSpring {
-  int ij;              /* Pij from the paper, one end of the spring.   */
-  int kl;              /* Pkl from the paper, one end of the spring.   */
+  int ij;              /* `Pij` from the paper, one end of the spring. */
+  int kl;              /* `Pkl` from the paper, one end of the spring. */
   int mn;              /* For hair springs: third vertex index; For bending springs: edge index; */
   int *pa;             /* Array of vert indices for poly a (for bending springs). */
   int *pb;             /* Array of vert indices for poly b (for bending springs). */
-  int la;              /* Length of *pa. */
-  int lb;              /* Length of *pb. */
+  int la;              /* Length of `*pa`. */
+  int lb;              /* Length of `*pb`. */
   float restlen;       /* The original length of the spring. */
   float restang;       /* The original angle of the bending springs. */
   int type;            /* Types defined in BKE_cloth.h ("springType"). */
@@ -208,7 +208,7 @@ typedef enum {
 /* SPRING FLAGS */
 typedef enum {
   CLOTH_SPRING_FLAG_DEACTIVATE = (1 << 1),
-  CLOTH_SPRING_FLAG_NEEDED = (1 << 2),  // springs has values to be applied
+  CLOTH_SPRING_FLAG_NEEDED = (1 << 2), /* Springs has values to be applied. */
 } CLOTH_SPRINGS_FLAGS;
 
 /////////////////////////////////////////////////
diff --git a/source/blender/blenkernel/intern/mesh_merge.c b/source/blender/blenkernel/intern/mesh_merge.c
index e118c1b6f6e..e3b5e5ea434 100644
--- a/source/blender/blenkernel/intern/mesh_merge.c
+++ b/source/blender/blenkernel/intern/mesh_merge.c
@@ -377,8 +377,8 @@ Mesh *BKE_mesh_merge_verts(Mesh *mesh,
       BLI_gset_insert(poly_gset, mpgh);
     }
 
-    /* Can we optimise by reusing an old pmap ?  How do we know an old pmap is stale ?  */
-    /* When called by MOD_array.c, the cddm has just been created, so it has no valid pmap.   */
+    /* Can we optimize by reusing an old `pmap`? How do we know an old `pmap` is stale? */
+    /* When called by `MOD_array.c` the `cddm` has just been created, so it has no valid `pmap`. */
     BKE_mesh_vert_poly_map_create(
         &poly_map, &poly_map_mem, mesh->mpoly, mesh->mloop, totvert, totpoly, totloop);
   } /* done preparing for fast poly compare */
@@ -411,9 +411,10 @@ Mesh *BKE_mesh_merge_verts(Mesh *mesh,
         continue;
       }
       if (merge_mode == MESH_MERGE_VERTS_DUMP_IF_EQUAL) {
-        /* Additional condition for face dump:  target vertices must make up an identical face */
-        /* The test has 2 steps:  (1) first step is fast ghash lookup, but not failproof       */
-        /*                        (2) second step is thorough but more costly poly compare     */
+        /* Additional condition for face dump:  target vertices must make up an identical face.
+         * The test has 2 steps:
+         * 1) first step is fast `ghash` lookup, but not fail-proof.
+         * 2) second step is thorough but more costly poly compare. */
         int i_poly, v_target;
         bool found = false;
         PolyKey pkey;
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index c90572a68a6..6528e1cdf79 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2740,7 +2740,7 @@ static void lib_link_window_scene_data_restore(wmWindow *win, Scene *scene, View
 
           v3d->localvd->camera = scene->camera;
 
-          /* Localview can become invalid during undo/redo steps,
+          /* Local-view can become invalid during undo/redo steps,
            * so we exit it when no could be found. */
           for (base = view_layer->object_bases.first; base; base = base->next) {
             if (base->local_view_bits & v3d->local_view_uuid) {
@@ -2752,7 +2752,7 @@ static void lib_link_window_scene_data_restore(wmWindow *win, Scene *scene, View
             v3d->localvd = NULL;
             v3d->local_view_uuid = 0;
 
-            /* Regionbase storage is different depending if the space is active. */
+            /* Region-base storage is different depending if the space is active. */
             ListBase *regionbase = (sl == area->spacedata.first) ? &area->regionbase :
                                                                    &sl->regionbase;
             LISTBASE_FOREACH (ARegion *, region, regionbase) {
diff --git a/source/blender/blenloader/intern/versioning_260.c b/source/blender/blenloader/intern/versioning_260.c
index 3b9ad64770d..7c5eefa60f7 100644
--- a/source/blender/blenloader/intern/versioning_260.c
+++ b/source/blender/blenloader/intern/versioning_260.c
@@ -75,7 +75,7 @@
 #  include "BKE_writeffmpeg.h"
 #endif
 
-#include "IMB_imbuf.h" /* for proxy / timecode versioning stuff */
+#include "IMB_imbuf.h" /* for proxy / time-code versioning stuff. */
 
 #include "NOD_common.h"
 #include "NOD_texture.h"
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c
index d8ab8d6f32a..d86ddc5b646 100644
--- a/source/blender/blenloader/intern/versioning_270.c
+++ b/source/blender/blenloader/intern/versioning_270.c
@@ -1429,7 +1429,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *bmain)
         }
         if (clip->tracking.stabilization.scale == 0.0f) {
           /* ensure init.
-           * Was previously used for autoscale only,
+           * Was previously used for auto-scale only,
            * now used always (as "target scale") */
           clip->tracking.stabilization.scale = 1.0f;
         }
diff --git a/source/blender/draw/engines/eevee/eevee_sampling.c b/source/blender/draw/engines/eevee/eevee_sampling.c
index aa11f072fa5..da4bd20106c 100644
--- a/source/blender/draw/engines/eevee/eevee_sampling.c
+++ b/source/blender/draw/engines/eevee/eevee_sampling.c
@@ -38,7 +38,7 @@ void EEVEE_sample_ball(int sample_ofs, float radius, float rsample[3])
 
   BLI_halton_3d(ht_primes, ht_offset, sample_ofs, ht_point);
 
-  /* Decorelate AA and shadow samples. (see T68594) */
+  /* De-correlate AA and shadow samples. (see T68594) */
   ht_point[0] = fmod(ht_point[0] * 1151.0, 1.0);
   ht_point[1] = fmod(ht_point[1] * 1069.0, 1.0);
   ht_point[2] = fmod(ht_point[2] * 1151.0, 1.0);
diff --git a/source/blender/draw/engines/workbench/workbench_render.c b/source/blender/draw/engines/workbench/workbench_render.c
index 47592578c34..f2d178f6565 100644
--- a/source/blender/draw/engines/workbench/workbench_render.c
+++ b/source/blender/draw/engines/workbench/workbench_render.c
@@ -54,7 +54,7 @@ static void workbench_render_matrices_init(RenderEngine *engine, Depsgraph *deps
   /* TODO(sergey): Shall render hold pointer to an evaluated camera instead? */
   struct Object *ob_camera_eval = DEG_get_evaluated_object(depsgraph, RE_GetCamera(engine->re));
 
-  /* Set the persective, view and window matrix. */
+  /* Set the perspective, view and window matrix. */
   float winmat[4][4], viewmat[4][4], viewinv[4][4];
 
   RE_GetCameraWindow(engine->re, ob_camera_eval, winmat);
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index 24bb58535a5..2bfa417eb78 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -4161,7 +4161,7 @@ static void ANIM_init_channel_typeinfo_data(void)
 /* Get type info from given channel type */
 const bAnimChannelType *ANIM_channel_get_typeinfo(bAnimListElem *ale)
 {
-  /* santiy checks */
+  /* Sanity checks. */
   if (ale == NULL) {
     return NULL;
   }
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index 3be913f342d..d33545f5b22 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -2022,7 +2022,7 @@ static void gpencil_brush_delete_mode_brushes(Main *bmain,
       }
     }
 
-    /* Before delete, unpinn any material of the brush. */
+    /* Before delete, un-pin any material of the brush. */
     if ((brush->gpencil_settings) && (brush->gpencil_settings->material != NULL)) {
       brush->gpencil_settings->material = NULL;
       brush->gpencil_settings->flag &= ~GP_BRUSH_MATERIAL_PINNED;
diff --git a/source/blender/editors/gpencil/gpencil_intern.h b/source/blender/editors/gpencil/gpencil_intern.h
index 5fea46626d5..f3e6129b8ae 100644
--- a/source/blender/editors/gpencil/gpencil_intern.h
+++ b/source/blender/editors/gpencil/gpencil_intern.h
@@ -341,7 +341,7 @@ bool gpencil_brush_create_presets_poll(bContext *C);
 
 extern ListBase gpencil_strokes_copypastebuf;
 
-/* Build a map for converting between old colornames and destination-color-refs */
+/* Build a map for converting between old color-names and destination-color-refs. */
 struct GHash *gpencil_copybuf_validate_colormap(struct bContext *C);
 
 /* Stroke Editing ------------------------------------ */
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 7e0fd2f2675..20bed64178a 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -149,9 +149,9 @@ typedef struct tGPsdata {
   Scene *scene;
   struct Depsgraph *depsgraph;
 
-  /** current object. */
+  /** Current object. */
   Object *ob;
-  /** Obeject eval. */
+  /** Evaluated object. */
   Object *ob_eval;
   /** window where painting originated. */
   wmWindow *win;
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index db0b9dd035f..251aece687a 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -1276,7 +1276,7 @@ static int gpencil_primitive_invoke(bContext *C, wmOperator *op, const wmEvent *
   /* set cursor to

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list