From 4e8b24f1d1e169a754b2f57b32b6413950061ff8 Mon Sep 17 00:00:00 2001
From: Campbell Barton <campbell@blender.org>
Date: Fri, 19 Apr 2024 15:50:28 +1000
Subject: [PATCH] Cleanup: spelling in comments & punctuation

---
 intern/ghost/intern/GHOST_SystemWayland.cc                    | 2 +-
 intern/ghost/intern/GHOST_WindowWayland.cc                    | 2 +-
 release/bin/blender-launcher                                  | 2 +-
 scripts/modules/_bpy_internal/freedesktop.py                  | 2 +-
 source/blender/blenkernel/intern/grease_pencil.cc             | 2 +-
 source/blender/blenkernel/intern/image_gpu.cc                 | 2 +-
 source/blender/blenkernel/intern/pbvh_pixels_copy.cc          | 2 +-
 source/blender/blenlib/BLI_astar.h                            | 4 ++--
 .../engines/eevee_next/shaders/eevee_horizon_scan_lib.glsl    | 2 +-
 source/blender/editors/space_text/text_format_glsl.cc         | 2 +-
 source/blender/gpu/GPU_texture.hh                             | 4 ++--
 source/blender/gpu/intern/gpu_shader_create_info.cc           | 2 +-
 source/blender/sequencer/intern/sound.cc                      | 2 +-
 source/blender/windowmanager/intern/wm_platform.cc            | 2 +-
 14 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc
index 89b4a056a70..2a9b3f183a0 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cc
+++ b/intern/ghost/intern/GHOST_SystemWayland.cc
@@ -3389,7 +3389,7 @@ static void data_device_handle_drop(void *data, wl_data_device * /*wl_data_devic
       GHOST_TDragnDropTypes ghost_dnd_type = GHOST_kDragnDropTypeUnknown;
       void *ghost_dnd_data = nullptr;
 
-      /* Failure to receive drop data . */
+      /* Failure to receive drop data. */
       if (mime_receive == ghost_wl_mime_text_uri) {
         const char file_proto[] = "file://";
         /* NOTE: some applications CRLF (`\r\n`) GTK3 for e.g. & others don't `pcmanfm-qt`.
diff --git a/intern/ghost/intern/GHOST_WindowWayland.cc b/intern/ghost/intern/GHOST_WindowWayland.cc
index 75ff9cdf849..41c0d624ec2 100644
--- a/intern/ghost/intern/GHOST_WindowWayland.cc
+++ b/intern/ghost/intern/GHOST_WindowWayland.cc
@@ -1219,7 +1219,7 @@ static void xdg_toplevel_handle_wm_capabilities(void * /*data*/,
   /* Only available in interface version 5. */
   CLOG_INFO(LOG, 2, "wm_capabilities");
 
-  /* NOTE: this would be useful if blender had CSD, . */
+  /* NOTE: this would be useful if blender had CSD. */
 }
 
 static const xdg_toplevel_listener xdg_toplevel_listener = {
diff --git a/release/bin/blender-launcher b/release/bin/blender-launcher
index a638695034a..f2b2673820a 100755
--- a/release/bin/blender-launcher
+++ b/release/bin/blender-launcher
@@ -3,7 +3,7 @@ BF_DIST_BIN=$(dirname "$0")
 BF_PROGRAM="blender"
 
 # Add own lib folder first, because Steam or other environments may set an
-# LD_LIBRARY_PATH that has priority over the runpath in the Blender excutable,
+# $LD_LIBRARY_PATH that has priority over the run-path in the Blender executable,
 # but contains incompatible libraries.
 LD_LIBRARY_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH}
 
diff --git a/scripts/modules/_bpy_internal/freedesktop.py b/scripts/modules/_bpy_internal/freedesktop.py
index 2b930e07c8e..9563047e581 100644
--- a/scripts/modules/_bpy_internal/freedesktop.py
+++ b/scripts/modules/_bpy_internal/freedesktop.py
@@ -46,7 +46,7 @@ BLENDER_ENV = "bpy" in sys.modules
 # -----------------------------------------------------------------------------
 # Programs
 
-# The command `xdg-mime` handles most of the file assosiation actions.
+# The command `xdg-mime` handles most of the file association actions.
 XDG_MIME_PROG = shutil.which("xdg-mime") or ""
 
 # Initialize by `bpy` or command line arguments.
diff --git a/source/blender/blenkernel/intern/grease_pencil.cc b/source/blender/blenkernel/intern/grease_pencil.cc
index 57f86269287..e943c4dc08b 100644
--- a/source/blender/blenkernel/intern/grease_pencil.cc
+++ b/source/blender/blenkernel/intern/grease_pencil.cc
@@ -2869,7 +2869,7 @@ void GreasePencil::remove_layer(blender::bke::greasepencil::Layer &layer)
   const Layer *active_layer = this->get_active_layer();
   if (active_layer == &layer) {
     Span<const Layer *> layers = this->layers();
-    /* If there is no other layer available , unset the active layer. */
+    /* If there is no other layer available, unset the active layer. */
     if (layers.size() == 1) {
       this->set_active_layer(nullptr);
     }
diff --git a/source/blender/blenkernel/intern/image_gpu.cc b/source/blender/blenkernel/intern/image_gpu.cc
index 618379fa796..ff63ed32701 100644
--- a/source/blender/blenkernel/intern/image_gpu.cc
+++ b/source/blender/blenkernel/intern/image_gpu.cc
@@ -787,7 +787,7 @@ static void gpu_texture_update_from_ibuf(
              IMB_colormanagement_space_is_scene_linear(ibuf->byte_buffer.colorspace) ||
              IMB_colormanagement_space_is_data(ibuf->byte_buffer.colorspace))
     {
-      /* sRGB or scene linear or scaled down non-color data , store as byte texture that the GPU
+      /* sRGB or scene linear or scaled down non-color data, store as byte texture that the GPU
        * can decode directly. */
       rect = (uchar *)MEM_mallocN(sizeof(uchar[4]) * w * h, __func__);
       if (rect == nullptr) {
diff --git a/source/blender/blenkernel/intern/pbvh_pixels_copy.cc b/source/blender/blenkernel/intern/pbvh_pixels_copy.cc
index ad65e7ab8a4..5057b8d47dd 100644
--- a/source/blender/blenkernel/intern/pbvh_pixels_copy.cc
+++ b/source/blender/blenkernel/intern/pbvh_pixels_copy.cc
@@ -312,7 +312,7 @@ struct Rows {
    * - The second source pixel must be a neighbor pixel of the first source, or the same as the
    *   first source when no second pixel could be found.
    * - The second source pixel must be a pixel that is painted on by the brush.
-   * - The second source pixel must be the second closest pixel , or the first source
+   * - The second source pixel must be the second closest pixel, or the first source
    *   when no second pixel could be found.
    */
   int2 find_second_source(int2 destination, int2 first_source)
diff --git a/source/blender/blenlib/BLI_astar.h b/source/blender/blenlib/BLI_astar.h
index 202ac4f3a46..6b05720f9bd 100644
--- a/source/blender/blenlib/BLI_astar.h
+++ b/source/blender/blenlib/BLI_astar.h
@@ -88,8 +88,8 @@ int BLI_astar_node_link_other_node(BLI_AStarGNLink *lnk, int idx);
 /**
  * Initialize a solution data for given A* graph. Does not compute anything!
  *
- * \param custom_data: an opaque pointer attached to this link, available e.g
- * . to cost callback function.
+ * \param custom_data: an opaque pointer attached to this link, available e.g.
+ * to cost callback function.
  *
  * \note BLI_AStarSolution stores nearly all data needed during solution compute.
  */
diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_horizon_scan_lib.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_horizon_scan_lib.glsl
index ce6ca6b2139..b48a4b817d7 100644
--- a/source/blender/draw/engines/eevee_next/shaders/eevee_horizon_scan_lib.glsl
+++ b/source/blender/draw/engines/eevee_next/shaders/eevee_horizon_scan_lib.glsl
@@ -24,7 +24,7 @@ uint horizon_scan_angles_to_bitmask(vec2 theta)
   /* Algorithm 1, line 18. Re-ordered to make sure to clamp to the hemisphere range. */
   vec2 ratio = saturate(theta * M_1_PI + 0.5);
   uint a = uint(floor(float(bitmask_len) * ratio.x));
-  /* The paper is wrong here. The additional half Pi is not needed . */
+  /* The paper is wrong here. The additional half Pi is not needed. */
   uint b = uint(ceil(float(bitmask_len) * (ratio.y - ratio.x)));
   /* Algorithm 1, line 19. */
   return (((b < 32u) ? 1u << b : 0u) - 1u) << a;
diff --git a/source/blender/editors/space_text/text_format_glsl.cc b/source/blender/editors/space_text/text_format_glsl.cc
index 64b2eced625..261568000a1 100644
--- a/source/blender/editors/space_text/text_format_glsl.cc
+++ b/source/blender/editors/space_text/text_format_glsl.cc
@@ -293,7 +293,7 @@ static const Span<const char *> text_format_glsl_literals_reserved(
  * https://registry.khronos.org/OpenGL/specs/gl/GLSLangSpec.4.60.pdf
  */
 static const char *text_format_glsl_literals_specialvar_data[] = {
-    /* Force single column , sorted list */
+    /* Force single column, sorted list */
     /* clang-format off */
     "gl_ClipDistance",
     "gl_FragCoord",
diff --git a/source/blender/gpu/GPU_texture.hh b/source/blender/gpu/GPU_texture.hh
index 714c7f1afbd..49a0e525ca5 100644
--- a/source/blender/gpu/GPU_texture.hh
+++ b/source/blender/gpu/GPU_texture.hh
@@ -674,8 +674,8 @@ void GPU_texture_free(GPUTexture *texture);
  * Create an alias of the source texture data. A view can cover the whole texture or only a range
  * of mip levels and/or array layer range.
  *
- * \a view_format is the format in which the view will interpret the data of \a source_texture . It
- * must match the format of \a source_texture in size (ex: RGBA8 can be reinterpreted as R32UI).
+ * \a view_format is the format in which the view will interpret the data of \a source_texture.
+ * It must match the format of \a source_texture in size (ex: RGBA8 can be reinterpreted as R32UI).
  * See https://www.khronos.org/opengl/wiki/Texture_Storage#View_texture_aliases for an exhaustive
  * list.
  *
diff --git a/source/blender/gpu/intern/gpu_shader_create_info.cc b/source/blender/gpu/intern/gpu_shader_create_info.cc
index 1d2254f848d..1379f7fac29 100644
--- a/source/blender/gpu/intern/gpu_shader_create_info.cc
+++ b/source/blender/gpu/intern/gpu_shader_create_info.cc
@@ -544,7 +544,7 @@ void gpu_shader_create_info_init()
 
     /* NOTE: As atomic data types can alter shader gen if native atomics are unsupported, we need
      * to use differing create info's to handle the tile optimized check. This does prevent
-     * the shadow techniques from being dynamically switchable . */
+     * the shadow techniques from being dynamically switchable. */
     const bool is_tile_based_arch = (GPU_platform_architecture() == GPU_ARCHITECTURE_TBDR);
     if (is_tile_based_arch) {
       eevee_shadow_data = eevee_shadow_data_non_atomic;
diff --git a/source/blender/sequencer/intern/sound.cc b/source/blender/sequencer/intern/sound.cc
index bc50422124b..2a23a356c45 100644
--- a/source/blender/sequencer/intern/sound.cc
+++ b/source/blender/sequencer/intern/sound.cc
@@ -164,7 +164,7 @@ EQCurveMappingData *SEQ_sound_equalizer_add(SoundEqualizerModifierData *semd,
   if (minX < 0) {
     minX = 0.0;
   }
-  /* It's the same as BKE_curvemapping_add , but changing the name */
+  /* It's the same as #BKE_curvemapping_add, but changing the name. */
   eqcmd = MEM_cnew<EQCurveMappingData>("Equalizer");
   BKE_curvemapping_set_defaults(&eqcmd->curve_mapping,
                                 1, /* Total. */
diff --git a/source/blender/windowmanager/intern/wm_platform.cc b/source/blender/windowmanager/intern/wm_platform.cc
index 00e2d370fa4..9e5a25d4676 100644
--- a/source/blender/windowmanager/intern/wm_platform.cc
+++ b/source/blender/windowmanager/intern/wm_platform.cc
@@ -23,7 +23,7 @@
 #endif
 
 /* -------------------------------------------------------------------- */
-/** \name Register File Assosiation
+/** \name Register File Association
  * \{ */
 
 bool WM_platform_assosiate_set(bool do_register, bool all_users, char **r_error_msg)
-- 
GitLab