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

Campbell Barton noreply at git.blender.org
Thu Dec 8 04:01:16 CET 2022


Commit: cb45b0bb2a8fe51cb8c55bfa1d2b4fbfc8e379d7
Author: Campbell Barton
Date:   Thu Dec 8 12:36:04 2022 +1100
Branches: master
https://developer.blender.org/rBcb45b0bb2a8fe51cb8c55bfa1d2b4fbfc8e379d7

Cleanup: spelling in comments

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

M	intern/cycles/kernel/light/tree.h
M	intern/cycles/scene/light.cpp
M	intern/cycles/scene/light_tree.h
M	source/blender/editors/interface/interface_layout.cc
M	source/blender/geometry/intern/uv_parametrizer.cc

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

diff --git a/intern/cycles/kernel/light/tree.h b/intern/cycles/kernel/light/tree.h
index c23f268d199..037a4a9f376 100644
--- a/intern/cycles/kernel/light/tree.h
+++ b/intern/cycles/kernel/light/tree.h
@@ -41,7 +41,7 @@ ccl_device float light_tree_cos_bounding_box_angle(const BoundingBox bbox,
                                       (i & 2) ? bbox.max.y : bbox.min.y,
                                       (i & 4) ? bbox.max.z : bbox.min.z);
 
-    /* Caculate the bounding box angle. */
+    /* Calculate the bounding box angle. */
     float3 point_to_corner = normalize(corner - P);
     cos_theta_u = fminf(cos_theta_u, dot(point_to_centroid, point_to_corner));
   }
@@ -461,7 +461,7 @@ ccl_device int light_tree_cluster_select_emitter(KernelGlobals kg,
 
   for (int i = 0; i < knode->num_prims; i++) {
     int current_index = -knode->child_index + i;
-    /* maximum importance = importance[0], mininum importance = importance[1] */
+    /* maximum importance = importance[0], minimum importance = importance[1] */
     float importance[2];
     light_tree_emitter_importance<in_volume_segment>(
         kg, P, N_or_D, t, has_transmission, current_index, importance[0], importance[1]);
diff --git a/intern/cycles/scene/light.cpp b/intern/cycles/scene/light.cpp
index c45e14bb1ad..f6e9098cd2b 100644
--- a/intern/cycles/scene/light.cpp
+++ b/intern/cycles/scene/light.cpp
@@ -1045,7 +1045,7 @@ void LightManager::device_update_lights(Device *device, DeviceScene *dscene, Sce
       const float tan_half_spread = light->spread == M_PI_F ? FLT_MAX : tanf(half_spread);
       /* Normalization computed using:
        * integrate cos(x) * (1 - tan(x) / tan(a)) * sin(x) from x = 0 to a, a being half_spread.
-       * Divided by tan_half_spread to simplify the attentuation computation in `area.h`. */
+       * Divided by tan_half_spread to simplify the attenuation computation in `area.h`. */
       const float normalize_spread = 1.0f / (tan_half_spread - half_spread);
 
       dir = safe_normalize(dir);
diff --git a/intern/cycles/scene/light_tree.h b/intern/cycles/scene/light_tree.h
index 18f552924a9..9d68acc8a5f 100644
--- a/intern/cycles/scene/light_tree.h
+++ b/intern/cycles/scene/light_tree.h
@@ -33,7 +33,7 @@ struct OrientationBounds {
 
   enum empty_t { empty = 0 };
 
-  /* If the orientation bound is set to empty, the values are set to minumums
+  /* If the orientation bound is set to empty, the values are set to minimums
    * so that merging it with another non-empty orientation bound guarantees that
    * the return value is equal to non-empty orientation bound. */
   __forceinline OrientationBounds(empty_t)
diff --git a/source/blender/editors/interface/interface_layout.cc b/source/blender/editors/interface/interface_layout.cc
index 3d8c934fa17..73916d91e80 100644
--- a/source/blender/editors/interface/interface_layout.cc
+++ b/source/blender/editors/interface/interface_layout.cc
@@ -1508,7 +1508,7 @@ void uiItemsFullEnumO_items(uiLayout *layout,
   bool last_iter = false;
   const EnumPropertyItem *item = item_array;
   for (int i = 1; item->identifier && !last_iter; i++, item++) {
-    /* handle oversized pies */
+    /* Handle over-sized pies. */
     if (radial && (totitem > PIE_MAX_ITEMS) && (i >= PIE_MAX_ITEMS)) {
       if (item->name) { /* only visible items */
         const EnumPropertyItem *tmp;
diff --git a/source/blender/geometry/intern/uv_parametrizer.cc b/source/blender/geometry/intern/uv_parametrizer.cc
index 4236872f057..d197fdb644c 100644
--- a/source/blender/geometry/intern/uv_parametrizer.cc
+++ b/source/blender/geometry/intern/uv_parametrizer.cc
@@ -3885,7 +3885,7 @@ void GEO_uv_parametrizer_face_add(ParamHandle *phandle,
     while (i >= 0) {
       /* Just check the "ears" of the n-gon.
        * For quads, this is sufficient.
-       * For pents and higher, we might miss internal duplicate triangles, but note
+       * For pentagons and higher, we might miss internal duplicate triangles, but note
        * that such cases are rare if the source geometry is manifold and non-intersecting. */
       int pm = permute.size();
       BLI_assert(pm > 3);



More information about the Bf-blender-cvs mailing list