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

Campbell Barton noreply at git.blender.org
Fri Oct 8 04:25:26 CEST 2021


Commit: de07bf2b13e8239b5175e9c4b79fc09f096b1b86
Author: Campbell Barton
Date:   Fri Oct 8 13:23:19 2021 +1100
Branches: master
https://developer.blender.org/rBde07bf2b13e8239b5175e9c4b79fc09f096b1b86

Cleanup: spelling

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

M	intern/cycles/kernel/closure/bsdf_principled_diffuse.h
M	intern/cycles/kernel/integrator/integrator_intersect_volume_stack.h
M	intern/cycles/render/object.h
M	source/blender/blenlib/intern/scanfill.c
M	source/blender/blenloader/BLO_blend_validate.h
M	source/blender/blenloader/BLO_read_write.h
M	source/blender/sequencer/intern/disk_cache.c

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

diff --git a/intern/cycles/kernel/closure/bsdf_principled_diffuse.h b/intern/cycles/kernel/closure/bsdf_principled_diffuse.h
index 55fe364db70..0d611f40096 100644
--- a/intern/cycles/kernel/closure/bsdf_principled_diffuse.h
+++ b/intern/cycles/kernel/closure/bsdf_principled_diffuse.h
@@ -45,7 +45,7 @@ ccl_device float3 calculate_principled_diffuse_brdf(
 
   float NdotV = dot(N, V);
 
-  /* H = normalize(L + V);  // Bissector of an angle between L and V
+  /* H = normalize(L + V);  // Bisector of an angle between L and V.
    * LH2 = 2 * dot(L, H)^2 = 2cos(x)^2 = cos(2x) + 1 = dot(L, V) + 1,
    * half-angle x between L and V is at most 90 deg
    */
diff --git a/intern/cycles/kernel/integrator/integrator_intersect_volume_stack.h b/intern/cycles/kernel/integrator/integrator_intersect_volume_stack.h
index 00e90701d19..33a77d0fe29 100644
--- a/intern/cycles/kernel/integrator/integrator_intersect_volume_stack.h
+++ b/intern/cycles/kernel/integrator/integrator_intersect_volume_stack.h
@@ -142,7 +142,7 @@ ccl_device void integrator_intersect_volume_stack(INTEGRATOR_STATE_ARGS)
     }
   }
 #else
-  /* CUDA does not support defintion of a variable size arrays, so use the maximum possible. */
+  /* CUDA does not support definition of a variable size arrays, so use the maximum possible. */
   int enclosed_volumes[MAX_VOLUME_STACK_SIZE];
   int step = 0;
 
diff --git a/intern/cycles/render/object.h b/intern/cycles/render/object.h
index 84e2dfffebb..6920f2c1f1c 100644
--- a/intern/cycles/render/object.h
+++ b/intern/cycles/render/object.h
@@ -112,7 +112,7 @@ class Object : public Node {
   /* Check whether this object requires volume sampling (and hence might require space in the
    * volume stack).
    *
-   * Note that this is a naive iteration over sharders, which allows to access information prior
+   * Note that this is a naive iteration over shaders, which allows to access information prior
    * to `scene_update()`. */
   bool check_is_volume() const;
 
diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c
index 8845167f536..26ecc7552dc 100644
--- a/source/blender/blenlib/intern/scanfill.c
+++ b/source/blender/blenlib/intern/scanfill.c
@@ -448,7 +448,7 @@ static void splitlist(ScanFillContext *sf_ctx,
                       ListBase *temped,
                       unsigned short nr)
 {
-  /* everything is in templist, write only poly nr to fillist */
+  /* Everything is in temp-list, write only poly nr to fill-list. */
   ScanFillVert *eve, *eve_next;
   ScanFillEdge *eed, *eed_next;
 
diff --git a/source/blender/blenloader/BLO_blend_validate.h b/source/blender/blenloader/BLO_blend_validate.h
index 78aa481d4b1..cdbf4bdd952 100644
--- a/source/blender/blenloader/BLO_blend_validate.h
+++ b/source/blender/blenloader/BLO_blend_validate.h
@@ -21,7 +21,7 @@
 
 /** \file
  * \ingroup blenloader
- * \brief Utils ensuring .blend file (i.e. Main)
+ * \brief Utilities ensuring `.blend` file (i.e. Main)
  * is in valid state during write and/or read process.
  */
 
diff --git a/source/blender/blenloader/BLO_read_write.h b/source/blender/blenloader/BLO_read_write.h
index 86c7c367816..be5d28c7716 100644
--- a/source/blender/blenloader/BLO_read_write.h
+++ b/source/blender/blenloader/BLO_read_write.h
@@ -69,28 +69,28 @@ struct ReportList;
  * DNA Struct Writing
  * ------------------
  *
- * Functions dealing with DNA structs begin with BLO_write_struct_*.
+ * Functions dealing with DNA structs begin with `BLO_write_struct_*`.
  *
  * DNA struct types can be identified in different ways:
- *  - Run-time Name: The name is provided as const char *.
- *  - Compile-time Name: The name is provided at compile time. This is more efficient.
- *  - Struct ID: Every DNA struct type has an integer ID that can be queried with
- *      BLO_get_struct_id_by_name. Providing this ID can be a useful optimization when many structs
- *      of the same type are stored AND if those structs are not in a continuous array.
+ * - Run-time Name: The name is provided as `const char *`.
+ * - Compile-time Name: The name is provided at compile time. This is more efficient.
+ * - Struct ID: Every DNA struct type has an integer ID that can be queried with
+ *   #BLO_get_struct_id_by_name. Providing this ID can be a useful optimization when many
+ *   structs of the same type are stored AND if those structs are not in a continuous array.
  *
  * Often only a single instance of a struct is written at once. However, sometimes it is necessary
  * to write arrays or linked lists. Separate functions for that are provided as well.
  *
- * There is a special macro for writing id structs: BLO_write_id_struct. Those are handled
- * differently from other structs.
+ * There is a special macro for writing id structs: #BLO_write_id_struct.
+ * Those are handled differently from other structs.
  *
  * Raw Data Writing
  * ----------------
  *
- * At the core there is BLO_write_raw, which can write arbitrary memory buffers to the file. The
- * code that reads this data might have to correct its byte-order. For the common cases there are
- * convenience functions that write and read arrays of simple types such as int32. Those will
- * correct endianness automatically.
+ * At the core there is #BLO_write_raw, which can write arbitrary memory buffers to the file.
+ * The code that reads this data might have to correct its byte-order. For the common cases
+ * there are convenience functions that write and read arrays of simple types such as `int32`.
+ * Those will correct endianness automatically.
  */
 
 /* Mapping between names and ids. */
diff --git a/source/blender/sequencer/intern/disk_cache.c b/source/blender/sequencer/intern/disk_cache.c
index 543c23b184b..06d27717bdd 100644
--- a/source/blender/sequencer/intern/disk_cache.c
+++ b/source/blender/sequencer/intern/disk_cache.c
@@ -76,11 +76,12 @@
  * is used as UID. Blend file can still be copied manually which may cause conflict.
  */
 
-/* <cache type>-<resolution X>x<resolution Y>-<rendersize>%(<view_id>)-<frame no>.dcf */
+/* Format string:
+ * `<cache type>-<resolution X>x<resolution Y>-<rendersize>%(<view_id>)-<frame no>.dcf`. */
 #define DCACHE_FNAME_FORMAT "%d-%dx%d-%d%%(%d)-%d.dcf"
 #define DCACHE_IMAGES_PER_FILE 100
 #define DCACHE_CURRENT_VERSION 2
-#define COLORSPACE_NAME_MAX 64 /* XXX: defined in imb intern */
+#define COLORSPACE_NAME_MAX 64 /* XXX: defined in IMB intern. */
 
 typedef struct DiskCacheHeaderEntry {
   unsigned char encoding;



More information about the Bf-blender-cvs mailing list