[Bf-blender-cvs] [03173d63c01] master: Cleanup: spelling in comments

Campbell Barton noreply at git.blender.org
Fri Jul 8 01:58:36 CEST 2022


Commit: 03173d63c01aede48f361ce83f53e5e9d8236c05
Author: Campbell Barton
Date:   Fri Jul 8 09:10:30 2022 +1000
Branches: master
https://developer.blender.org/rB03173d63c01aede48f361ce83f53e5e9d8236c05

Cleanup: spelling in comments

Also move mis-placed doc-string.

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

M	source/blender/blenfont/intern/blf_glyph.c
M	source/blender/blenkernel/BKE_armature.h
M	source/blender/blenkernel/BKE_mball.h
M	source/blender/blenkernel/BKE_object.h
M	source/blender/blenkernel/intern/image_save.cc
M	source/blender/blenkernel/intern/mball.c
M	source/blender/editors/space_image/image_ops.c
M	source/blender/makesdna/DNA_windowmanager_types.h
M	source/blender/python/intern/bpy_driver.c

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

diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c
index 103919e86f2..215f79e6795 100644
--- a/source/blender/blenfont/intern/blf_glyph.c
+++ b/source/blender/blenfont/intern/blf_glyph.c
@@ -908,12 +908,12 @@ static FT_GlyphSlot blf_glyph_render(FontBLF *settings_font,
   bool spacing_done = false;
 
   /* 70% of maximum weight results in the same amount of boldness and horizontal
-   * expansion as the bold version (DejaVuSans-Bold.ttf) of our default font.
+   * expansion as the bold version `DejaVuSans-Bold.ttf` of our default font.
    * Worth reevaluating if we change default font. */
   float weight = (settings_font->flags & BLF_BOLD) ? 0.7f : settings_font->char_weight;
 
   /* 37.5% of maximum rightward slant results in 6 degree slope, matching italic
-   * version (DejaVuSans-Oblique.ttf) of our current font. But a nice median when
+   * version `DejaVuSans-Oblique.ttf` of our current font. But a nice median when
    * checking others. Worth reevaluating if we change default font. We could also
    * narrow the glyph slightly as most italics do, but this one does not. */
   float slant = (settings_font->flags & BLF_ITALIC) ? 0.375f : settings_font->char_slant;
diff --git a/source/blender/blenkernel/BKE_armature.h b/source/blender/blenkernel/BKE_armature.h
index 98f9f8e3588..ee0f41937e2 100644
--- a/source/blender/blenkernel/BKE_armature.h
+++ b/source/blender/blenkernel/BKE_armature.h
@@ -159,7 +159,7 @@ struct BoundBox *BKE_armature_boundbox_get(struct Object *ob);
  * Visual elements such as the envelopes radius & bendy-bone spline segments are *not* included,
  * making this not so useful for viewport culling.
  *
- * \param use_empty_drawtype: When enabled, the draw type of empty custom-objects is tagen into
+ * \param use_empty_drawtype: When enabled, the draw type of empty custom-objects is taken into
  * account when calculating the bounds.
  */
 void BKE_pchan_minmax(const struct Object *ob,
diff --git a/source/blender/blenkernel/BKE_mball.h b/source/blender/blenkernel/BKE_mball.h
index 5a4988c7a5f..a23d010b51f 100644
--- a/source/blender/blenkernel/BKE_mball.h
+++ b/source/blender/blenkernel/BKE_mball.h
@@ -75,7 +75,8 @@ float *BKE_mball_make_orco(struct Object *ob, struct ListBase *dispbase);
  * When some properties (wire-size, threshold, update flags) of meta-ball are changed, then this
  * properties are copied to all meta-balls in same "group" (meta-balls with same base name:
  * `MBall`, `MBall.001`, `MBall.002`, etc). The most important is to copy properties to the base
- * meta-ball, because this meta-ball influences polygonization of meta-balls. */
+ * meta-ball, because this meta-ball influences polygonization of meta-balls.
+ */
 void BKE_mball_properties_copy(struct Main *bmain, struct MetaBall *active_metaball);
 
 bool BKE_mball_minmax_ex(
diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h
index 96abea0e5ee..f0eb16a819d 100644
--- a/source/blender/blenkernel/BKE_object.h
+++ b/source/blender/blenkernel/BKE_object.h
@@ -366,9 +366,6 @@ void BKE_object_empty_draw_type_set(struct Object *ob, int value);
 
 void BKE_object_boundbox_calc_from_mesh(struct Object *ob, const struct Mesh *me_eval);
 bool BKE_object_boundbox_calc_from_evaluated_geometry(struct Object *ob);
-/**
- * Calculate visual bounds from an empty objects draw-type.
- */
 void BKE_object_minmax(struct Object *ob, float r_min[3], float r_max[3], bool use_hidden);
 bool BKE_object_minmax_dupli(struct Depsgraph *depsgraph,
                              struct Scene *scene,
@@ -376,6 +373,12 @@ bool BKE_object_minmax_dupli(struct Depsgraph *depsgraph,
                              float r_min[3],
                              float r_max[3],
                              bool use_hidden);
+/**
+ * Calculate visual bounds from an empty objects draw-type.
+ *
+ * \note This is not part of the calculation used by #BKE_object_boundbox_get
+ * as these bounds represent the extents of visual guides (use for viewport culling for e.g.)
+ */
 bool BKE_object_minmax_empty_drawtype(const struct Object *ob, float r_min[3], float r_max[3]);
 
 /**
diff --git a/source/blender/blenkernel/intern/image_save.cc b/source/blender/blenkernel/intern/image_save.cc
index 07ffc35907a..3f6f81845e2 100644
--- a/source/blender/blenkernel/intern/image_save.cc
+++ b/source/blender/blenkernel/intern/image_save.cc
@@ -290,7 +290,7 @@ static void image_save_post(ReportList *reports,
     BLI_strncpy(ibuf->name, filepath, sizeof(ibuf->name));
   }
 
-  /* The tiled image codepath must call this on its own. */
+  /* The tiled image code-path must call this on its own. */
   if (ima->source != IMA_SRC_TILED) {
     image_save_update_filepath(ima, filepath, opts);
   }
diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c
index 819bbde6556..2a1c940493c 100644
--- a/source/blender/blenkernel/intern/mball.c
+++ b/source/blender/blenkernel/intern/mball.c
@@ -434,13 +434,16 @@ static void mball_data_properties_copy(MetaBall *mb_dst, MetaBall *mb_src)
 
 void BKE_mball_properties_copy(Main *bmain, MetaBall *metaball_src)
 {
-  /* WARNING: This code does not cover all potential corner-cases. E.g. if:
-   *   |   Object   |   ObData   |
-   *   | ---------- | ---------- |
-   *   | Meta_A     | Meta_A     |
-   *   | Meta_A.001 | Meta_A.001 |
-   *   | Meta_B     | Meta_A     |
-   *   | Meta_B.001 | Meta_B.001 |
+  /**
+   * WARNING: This code does not cover all potential corner-cases. E.g. if:
+   * <pre>
+   * |   Object   |   ObData   |
+   * | ---------- | ---------- |
+   * | Meta_A     | Meta_A     |
+   * | Meta_A.001 | Meta_A.001 |
+   * | Meta_B     | Meta_A     |
+   * | Meta_B.001 | Meta_B.001 |
+   * </pre>
    *
    * Calling this function with `metaball_src` being `Meta_A.001` will update `Meta_A`, but NOT
    * `Meta_B.001`. So in the 'Meta_B' family, the two metaballs will have unmatching settings now.
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 9b622d34176..49489b696ef 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -199,7 +199,7 @@ static ImageUser *image_user_from_context(const bContext *C)
 
 static ImageUser image_user_from_context_and_active_tile(const bContext *C, Image *ima)
 {
-  /* Try to get image user from contexrt if available, otherwise use default. */
+  /* Try to get image user from context if available, otherwise use default. */
   ImageUser *iuser_context = image_user_from_context(C);
   ImageUser iuser;
   if (iuser_context) {
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h
index 5e741508603..a3d9b5fc7b6 100644
--- a/source/blender/makesdna/DNA_windowmanager_types.h
+++ b/source/blender/makesdna/DNA_windowmanager_types.h
@@ -240,7 +240,7 @@ typedef struct wmWindow {
   /** Active view layer displayed in this window. */
   char view_layer_name[64];
   /** The workspace may temporarily override the window's scene with scene pinning. This is the
-   * "overriden" or "default" scene to restore when entering a workspace with no scene pinned. */
+   * "overridden" or "default" scene to restore when entering a workspace with no scene pinned. */
   struct Scene *unpinned_scene;
 
   struct WorkSpaceInstanceHook *workspace_hook;
diff --git a/source/blender/python/intern/bpy_driver.c b/source/blender/python/intern/bpy_driver.c
index 9df3ea9b318..cc64af2a489 100644
--- a/source/blender/python/intern/bpy_driver.c
+++ b/source/blender/python/intern/bpy_driver.c
@@ -275,7 +275,7 @@ void BPY_driver_reset(void)
 }
 
 /**
- * Error return function for #BPY_eval_pydriver.
+ * Error return function for #BPY_driver_exec.
  *
  * \param anim_rna: Used to show the target when printing the error to give additional context.
  */



More information about the Bf-blender-cvs mailing list