[Bf-blender-cvs] [b52aeaadfb4] master: Cleanup: spelling, update function name in comments

Campbell Barton noreply at git.blender.org
Sun Sep 13 07:33:21 CEST 2020


Commit: b52aeaadfb43273b8c4cee895499207f31c5e040
Author: Campbell Barton
Date:   Sun Sep 13 15:00:52 2020 +1000
Branches: master
https://developer.blender.org/rBb52aeaadfb43273b8c4cee895499207f31c5e040

Cleanup: spelling, update function name in comments

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

M	source/blender/blenloader/intern/versioning_290.c
M	source/blender/bmesh/intern/bmesh_polygon_edgenet.c
M	source/blender/draw/engines/image/image_private.h
M	source/blender/gpu/intern/gpu_state.cc
M	source/blender/makesdna/intern/makesdna.c
M	source/blender/modifiers/intern/MOD_meshcache_pc2.c

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

diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c
index cf07e9acad3..b573fb28474 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -482,7 +482,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
       }
     }
 
-    /* Initialise additional velocity parameter for CacheFiles. */
+    /* Initialize additional velocity parameter for #CacheFile's. */
     if (!DNA_struct_elem_find(
             fd->filesdna, "MeshSeqCacheModifierData", "float", "velocity_scale")) {
       for (Object *object = bmain->objects.first; object != NULL; object = object->id.next) {
diff --git a/source/blender/bmesh/intern/bmesh_polygon_edgenet.c b/source/blender/bmesh/intern/bmesh_polygon_edgenet.c
index 39395cb9222..b92e431c86c 100644
--- a/source/blender/bmesh/intern/bmesh_polygon_edgenet.c
+++ b/source/blender/bmesh/intern/bmesh_polygon_edgenet.c
@@ -494,7 +494,7 @@ bool BM_face_split_edgenet(BMesh *bm,
   }
 
   /* These arrays used to be stack memory, however they can be
-   * large for single faces with complex edgenets, see: T65980. */
+   * large for single faces with complex edge-nets, see: T65980. */
 
   /* over-alloc (probably 2-4 is only used in most cases), for the biggest-fan */
   edge_order = MEM_mallocN(sizeof(*edge_order) * edge_order_len, __func__);
@@ -1650,8 +1650,8 @@ finally:
     {
       struct TempVertPair *tvp = temp_vert_pairs.list;
       do {
-        /* we must _never_ create connections here
-         * (inface the islands can't have a connection at all) */
+        /* We must _never_ create connections here
+         * (in case the islands can't have a connection at all). */
         BLI_assert(BM_edge_exists(tvp->v_orig, tvp->v_temp) == NULL);
       } while ((tvp = tvp->next));
     }
diff --git a/source/blender/draw/engines/image/image_private.h b/source/blender/draw/engines/image/image_private.h
index d11d868d4d2..defe5fd5bbb 100644
--- a/source/blender/draw/engines/image/image_private.h
+++ b/source/blender/draw/engines/image/image_private.h
@@ -34,7 +34,7 @@ struct GPUTexture;
 /* *********** LISTS *********** */
 
 /* GPUViewport.storage
- * Is freed everytime the viewport engine changes */
+ * Is freed every time the viewport engine changes. */
 typedef struct IMAGE_PassList {
   DRWPass *image_pass;
 } IMAGE_PassList;
diff --git a/source/blender/gpu/intern/gpu_state.cc b/source/blender/gpu/intern/gpu_state.cc
index b63abb3d57f..9ab056e868d 100644
--- a/source/blender/gpu/intern/gpu_state.cc
+++ b/source/blender/gpu/intern/gpu_state.cc
@@ -319,7 +319,7 @@ void GPU_force_state(void)
 /** \} */
 
 /* -------------------------------------------------------------------- */
-/** \name Synchronisation Utils
+/** \name Synchronization Utils
  * \{ */
 
 void GPU_memory_barrier(eGPUBarrier barrier)
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index 29e29961028..f5a35783dca 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -420,10 +420,10 @@ static int add_name(const char *str)
   }
 
   if (str[0] == '(' && str[1] == '*') {
-    /* we handle function pointer and special array cases here, e.g.
-     * void (*function)(...) and float (*array)[..]. the array case
+    /* We handle function pointer and special array cases here, e.g.
+     * `void (*function)(...)` and `float (*array)[..]`. the array case
      * name is still converted to (array *)() though because it is that
-     * way in old dna too, and works correct with elementsize() */
+     * way in old DNA too, and works correct with #DNA_elem_size_nr. */
     int isfuncptr = (strchr(str + 1, '(')) != NULL;
 
     DEBUG_PRINTF(3, "\t\t\t\t*** Function pointer or multidim array pointer found\n");
diff --git a/source/blender/modifiers/intern/MOD_meshcache_pc2.c b/source/blender/modifiers/intern/MOD_meshcache_pc2.c
index 120d1d6d71a..0ef9f26f1d7 100644
--- a/source/blender/modifiers/intern/MOD_meshcache_pc2.c
+++ b/source/blender/modifiers/intern/MOD_meshcache_pc2.c
@@ -81,7 +81,7 @@ static bool meshcache_read_pc2_head(FILE *fp,
 }
 
 /**
- * Gets the index frange and factor
+ * Gets the index range and factor
  *
  * currently same as for MDD
  */



More information about the Bf-blender-cvs mailing list