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

Campbell Barton noreply at git.blender.org
Thu Sep 23 07:57:31 CEST 2021


Commit: 754d56dcc19373358d264f04b3630eeca614d0b9
Author: Campbell Barton
Date:   Thu Sep 23 15:02:10 2021 +1000
Branches: master
https://developer.blender.org/rB754d56dcc19373358d264f04b3630eeca614d0b9

Cleanup: spelling in comments

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

M	intern/cycles/blender/blender_gpu_display.cpp
M	intern/cycles/integrator/path_trace.cpp
M	intern/cycles/integrator/path_trace_work.h
M	intern/cycles/integrator/render_scheduler.h
M	intern/cycles/render/gpu_display.h
M	source/blender/blenkernel/intern/gpencil_geom.cc
M	source/blender/blenkernel/intern/mesh_convert.cc
M	source/blender/editors/mesh/editmesh_knife.c
M	source/blender/editors/space_view3d/view3d_select.c
M	source/blender/gpu/intern/gpu_texture.cc
M	source/blender/windowmanager/intern/wm_files_link.c

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

diff --git a/intern/cycles/blender/blender_gpu_display.cpp b/intern/cycles/blender/blender_gpu_display.cpp
index c5c3a2bd155..456ca676cce 100644
--- a/intern/cycles/blender/blender_gpu_display.cpp
+++ b/intern/cycles/blender/blender_gpu_display.cpp
@@ -524,7 +524,7 @@ void BlenderGPUDisplay::do_draw(const GPUDisplayParams &params)
   const float zoomed_width = params.size.x * zoom_.x;
   const float zoomed_height = params.size.y * zoom_.y;
   if (texture_.width != params.size.x || texture_.height != params.size.y) {
-    /* Resolution divider is different from 1, force enarest interpolation. */
+    /* Resolution divider is different from 1, force nearest interpolation. */
     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
   }
   else if (zoomed_width - params.size.x > 0.5f || zoomed_height - params.size.y > 0.5f) {
diff --git a/intern/cycles/integrator/path_trace.cpp b/intern/cycles/integrator/path_trace.cpp
index b62a06aea43..e785c0d1b19 100644
--- a/intern/cycles/integrator/path_trace.cpp
+++ b/intern/cycles/integrator/path_trace.cpp
@@ -244,7 +244,7 @@ static void foreach_sliced_buffer_params(const vector<unique_ptr<PathTraceWork>>
     const int slice_height = max(lround(height * weight), 1);
 
     /* Disallow negative values to deal with situations when there are more compute devices than
-     * scanlines. */
+     * scan-lines. */
     const int remaining_height = max(0, height - current_y);
 
     BufferParams slide_params = buffer_params;
diff --git a/intern/cycles/integrator/path_trace_work.h b/intern/cycles/integrator/path_trace_work.h
index 8c9c8811199..e1be1655edd 100644
--- a/intern/cycles/integrator/path_trace_work.h
+++ b/intern/cycles/integrator/path_trace_work.h
@@ -104,7 +104,7 @@ class PathTraceWork {
    * - Copies work's render buffer to its device. */
   void copy_from_render_buffers(const RenderBuffers *render_buffers);
 
-  /* Special version of the `copy_from_render_buffers()` which only copies denosied passes from the
+  /* Special version of the `copy_from_render_buffers()` which only copies denoised passes from the
    * given render buffers, leaving rest of the passes.
    *
    * Same notes about device copying applies to this call as well. */
diff --git a/intern/cycles/integrator/render_scheduler.h b/intern/cycles/integrator/render_scheduler.h
index b7b598fb10c..6ed368a2dc8 100644
--- a/intern/cycles/integrator/render_scheduler.h
+++ b/intern/cycles/integrator/render_scheduler.h
@@ -31,7 +31,7 @@ class RenderWork {
   int resolution_divider = 1;
 
   /* Initialize render buffers.
-   * Includes steps like zero-ing the buffer on the device, and optional reading of pixels from the
+   * Includes steps like zeroing the buffer on the device, and optional reading of pixels from the
    * baking target. */
   bool init_render_buffers = false;
 
diff --git a/intern/cycles/render/gpu_display.h b/intern/cycles/render/gpu_display.h
index a01348d28d5..0340e0b7e45 100644
--- a/intern/cycles/render/gpu_display.h
+++ b/intern/cycles/render/gpu_display.h
@@ -46,7 +46,7 @@ class GPUDisplayParams {
    * NOTE: Is not affected by the resolution divider. */
   int2 full_size = make_int2(0, 0);
 
-  /* Effective vieport size.
+  /* Effective viewport size.
    * In the case of border render, size of the border rectangle.
    *
    * NOTE: Is not affected by the resolution divider. */
diff --git a/source/blender/blenkernel/intern/gpencil_geom.cc b/source/blender/blenkernel/intern/gpencil_geom.cc
index 976b26a1f3a..debdf44b0bb 100644
--- a/source/blender/blenkernel/intern/gpencil_geom.cc
+++ b/source/blender/blenkernel/intern/gpencil_geom.cc
@@ -738,8 +738,8 @@ bool BKE_gpencil_stroke_stretch(bGPDstroke *gps,
 
     sub_v3_v3v3(vec1, &gps->points[start_i].x, &gps->points[start_i + dir_i].x);
     /* In general curvature = 1/radius. For the case without the
-     * weights introduced by #segment_influence, the calculation is
-     * curvature = delta angle/delta arclength = len_v3(total_angle) / overshoot_length */
+     * weights introduced by #segment_influence, the calculation is:
+     * `curvature = delta angle/delta arclength = len_v3(total_angle) / overshoot_length` */
     float curvature = normalize_v3(total_angle) / overshoot_length;
     /* Compensate for the weights powf(added_len, segment_influence). */
     curvature /= powf(overshoot_length / fminf(overshoot_parameter, (float)j), segment_influence);
diff --git a/source/blender/blenkernel/intern/mesh_convert.cc b/source/blender/blenkernel/intern/mesh_convert.cc
index 467f7d4543e..72ccfffbc3c 100644
--- a/source/blender/blenkernel/intern/mesh_convert.cc
+++ b/source/blender/blenkernel/intern/mesh_convert.cc
@@ -237,7 +237,7 @@ static int mesh_nurbs_displist_to_mdata(const Curve *cu,
   int a, b, ofs, vertcount, startvert, totvert = 0, totedge = 0, totloop = 0, totpoly = 0;
   int p1, p2, p3, p4, *index;
   const bool conv_polys = (
-      /* 2d polys are filled with DL_INDEX3 displists */
+      /* 2D polys are filled with #DispList.type == #DL_INDEX3. */
       (CU_DO_2DFILL(cu) == false) ||
       /* surf polys are never filled */
       BKE_curve_type_get(cu) == OB_SURF);
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index eee4aec7459..e76a9641811 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -113,7 +113,7 @@ typedef struct KnifeColors {
   uchar axis_extra[3];
 } KnifeColors;
 
-/* Knifetool Operator. */
+/* Knife-tool Operator. */
 typedef struct KnifeVert {
   Object *ob;
   uint base_index;
@@ -445,7 +445,7 @@ static void knifetool_draw_orientation_locking(const KnifeTool_OpData *kcd)
   if (!compare_v3v3(kcd->prev.cage, kcd->curr.cage, KNIFE_FLT_EPSBIG)) {
     float v1[3], v2[3];
 
-    /* This is causing buggyness when prev.cage and curr.cage are too close together. */
+    /* This is causing buggy behavior when `prev.cage` and `curr.cage` are too close together. */
     knifetool_raycast_planes(kcd, v1, v2);
 
     uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
@@ -4100,7 +4100,7 @@ static void knifetool_init(bContext *C,
   kcd->axis_string[0] = ' ';
   kcd->axis_string[1] = '\0';
 
-  /* Initialise num input handling for angle snapping. */
+  /* Initialize number input handling for angle snapping. */
   initNumInput(&kcd->num);
   kcd->num.idx_max = 0;
   kcd->num.val_flag[0] |= NUM_NO_NEGATIVE;
@@ -4151,7 +4151,7 @@ static void knifetool_exit_ex(KnifeTool_OpData *kcd)
   MEM_freeN(kcd->cagecos);
   knife_bvh_free(kcd);
 
-  /* Linehits cleanup. */
+  /* Line-hits cleanup. */
   if (kcd->linehits) {
     MEM_freeN(kcd->linehits);
   }
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c
index 39aed131ea1..07f1f8a753c 100644
--- a/source/blender/editors/space_view3d/view3d_select.c
+++ b/source/blender/editors/space_view3d/view3d_select.c
@@ -2082,7 +2082,7 @@ static int mixed_bones_object_selectbuffer_extended(ViewContext *vc,
 /**
  * \param has_bones: When true, skip non-bone hits, also allow bases to be used
  * that are visible but not select-able,
- * since you may be in pose mode with an unselect-able object.
+ * since you may be in pose mode with an un-selectable object.
  *
  * \return the active base or NULL.
  */
diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc
index d5d13ea269f..2744c0c5e17 100644
--- a/source/blender/gpu/intern/gpu_texture.cc
+++ b/source/blender/gpu/intern/gpu_texture.cc
@@ -461,7 +461,7 @@ void GPU_texture_generate_mipmap(GPUTexture *tex)
   reinterpret_cast<Texture *>(tex)->generate_mipmap();
 }
 
-/* Copy a texture content to a similar texture. Only Mip 0 is copied. */
+/* Copy a texture content to a similar texture. Only MIP 0 is copied. */
 void GPU_texture_copy(GPUTexture *dst_, GPUTexture *src_)
 {
   Texture *src = reinterpret_cast<Texture *>(src_);
diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c
index 09567eca17f..321c7da3765 100644
--- a/source/blender/windowmanager/intern/wm_files_link.c
+++ b/source/blender/windowmanager/intern/wm_files_link.c
@@ -674,7 +674,7 @@ static void wm_append_do(WMLinkAppendData *lapp_data,
       CLOG_INFO(&LOG, 3, "Appended ID '%s' is proxified, keeping it linked...", id->name);
       item->append_action = WM_APPEND_ACT_KEEP_LINKED;
     }
-    /* Only re-use existing local ID for indirectly linked data, the ID explicitely selected by the
+    /* Only re-use existing local ID for indirectly linked data, the ID explicitly selected by the
      * user we always fully append. */
     else if (do_reuse_existing_id && existing_local_id != NULL &&
              (item->append_tag & WM_APPEND_TAG_INDIRECT) != 0) {



More information about the Bf-blender-cvs mailing list