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

Campbell Barton noreply at git.blender.org
Tue Jul 26 05:22:07 CEST 2022


Commit: f1f89ca751d2782fee5d1cb982881409d478c6eb
Author: Campbell Barton
Date:   Tue Jul 26 13:09:22 2022 +1000
Branches: master
https://developer.blender.org/rBf1f89ca751d2782fee5d1cb982881409d478c6eb

Cleanup: spelling in comments

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

M	intern/cycles/kernel/bvh/bvh.h
M	intern/cycles/kernel/device/optix/bvh.h
M	intern/ghost/intern/GHOST_SystemWayland.cpp
M	source/blender/blenkernel/intern/crazyspace.cc
M	source/blender/blenlib/intern/mesh_boolean.cc
M	source/blender/depsgraph/intern/eval/deg_eval.cc
M	source/blender/draw/engines/eevee_next/eevee_view.cc
M	source/blender/draw/intern/draw_manager.h
M	source/blender/editors/sculpt_paint/curves_sculpt_density.cc
M	source/blender/editors/space_image/image_undo.cc
M	source/blender/editors/space_outliner/outliner_tools.cc
M	source/blender/windowmanager/intern/wm_draw.c
M	source/blender/windowmanager/intern/wm_window.c

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

diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h
index bcefe5d970c..11e732ec480 100644
--- a/intern/cycles/kernel/bvh/bvh.h
+++ b/intern/cycles/kernel/bvh/bvh.h
@@ -8,7 +8,7 @@
 
 #include "kernel/integrator/state_util.h"
 
-/* Device specific accleration structures for ray tracing. */
+/* Device specific acceleration structures for ray tracing. */
 
 #if defined(__EMBREE__)
 #  include "kernel/device/cpu/bvh.h"
diff --git a/intern/cycles/kernel/device/optix/bvh.h b/intern/cycles/kernel/device/optix/bvh.h
index a1621277ec7..0fb8156c27d 100644
--- a/intern/cycles/kernel/device/optix/bvh.h
+++ b/intern/cycles/kernel/device/optix/bvh.h
@@ -166,7 +166,7 @@ extern "C" __global__ void __anyhit__kernel_optix_shadow_all_hit()
     prim = segment.prim;
 
 #    if OPTIX_ABI_VERSION < 55
-    /* Filter out curve endcaps. */
+    /* Filter out curve end-caps. */
     if (u == 0.0f || u == 1.0f) {
       return optixIgnoreIntersection();
     }
@@ -290,7 +290,7 @@ extern "C" __global__ void __anyhit__kernel_optix_visibility_test()
 #ifdef __HAIR__
 #  if OPTIX_ABI_VERSION < 55
   if (optixGetPrimitiveType() == OPTIX_PRIMITIVE_TYPE_ROUND_CUBIC_BSPLINE) {
-    /* Filter out curve endcaps. */
+    /* Filter out curve end-caps. */
     const float u = __uint_as_float(optixGetAttribute_0());
     if (u == 0.0f || u == 1.0f) {
       return optixIgnoreIntersection();
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp
index 96f11aa2aa5..ebb52bf08cb 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -3881,7 +3881,7 @@ bool GHOST_SystemWayland::window_cursor_grab_set(const GHOST_TGrabCursorMode mod
       input->relative_pointer = nullptr;
     }
     if (input->locked_pointer) {
-      /* Potentially add a motion event so the applicate has updated X/Y coordinates. */
+      /* Potentially add a motion event so the application has updated X/Y coordinates. */
       int32_t xy_motion[2] = {0, 0};
       bool xy_motion_create_event = false;
 
diff --git a/source/blender/blenkernel/intern/crazyspace.cc b/source/blender/blenkernel/intern/crazyspace.cc
index 978606ef1fa..8d4b64da817 100644
--- a/source/blender/blenkernel/intern/crazyspace.cc
+++ b/source/blender/blenkernel/intern/crazyspace.cc
@@ -96,7 +96,7 @@ float (*BKE_crazyspace_get_mapped_editverts(struct Depsgraph *depsgraph, Object
 
   /* disable subsurf temporal, get mapped cos, and enable it */
   if (modifiers_disable_subsurf_temporary(scene_eval, obedit_eval)) {
-    /* need to make new derivemesh */
+    /* Need to make new derived-mesh. */
     makeDerivedMesh(depsgraph, scene_eval, obedit_eval, &CD_MASK_BAREMESH);
   }
 
diff --git a/source/blender/blenlib/intern/mesh_boolean.cc b/source/blender/blenlib/intern/mesh_boolean.cc
index d4586f95fe0..357dba154af 100644
--- a/source/blender/blenlib/intern/mesh_boolean.cc
+++ b/source/blender/blenlib/intern/mesh_boolean.cc
@@ -2966,10 +2966,10 @@ static std::ostream &operator<<(std::ostream &os, const FaceMergeState &fms)
  * \a tris all have the same original face.
  * Find the 2d edge/triangle topology for these triangles, but only the ones facing in the
  * norm direction, and whether each edge is dissolvable or not.
- * If we did the initial triangulation properly, and any Delaunay triangulations of interections
+ * If we did the initial triangulation properly, and any Delaunay triangulations of intersections
  * properly, then each triangle edge should have at most one neighbor.
- * However, there can be anonalies. For example, if an input face is self-intersecting, we fall
- * back on the floating poing polyfill triangulation, which, after which all bets are off.
+ * However, there can be anomalies. For example, if an input face is self-intersecting, we fall
+ * back on the floating point poly-fill triangulation, which, after which all bets are off.
  * Hence, try to be tolerant of such unexpected topology.
  */
 static void init_face_merge_state(FaceMergeState *fms,
diff --git a/source/blender/depsgraph/intern/eval/deg_eval.cc b/source/blender/depsgraph/intern/eval/deg_eval.cc
index 426e04a5cf9..89e1f1add18 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval.cc
@@ -70,7 +70,7 @@ enum class EvaluationStage {
    * involved. */
   COPY_ON_WRITE,
 
-  /* Evaluate actual ID nodes visiblity based on the current state of animation and drivers. */
+  /* Evaluate actual ID nodes visibility based on the current state of animation and drivers. */
   DYNAMIC_VISIBILITY,
 
   /* Threaded evaluation of all possible operations. */
@@ -136,7 +136,7 @@ bool check_operation_node_visible(const DepsgraphEvalState *state, OperationNode
     return true;
   }
 
-  /* Special case for dynamic visiblity pass: the actual visibility is not yet known, so limit to
+  /* Special case for dynamic visibility pass: the actual visibility is not yet known, so limit to
    * only operations which affects visibility. */
   if (state->stage == EvaluationStage::DYNAMIC_VISIBILITY) {
     return op_node->flag & OperationFlag::DEPSOP_FLAG_AFFECTS_VISIBILITY;
diff --git a/source/blender/draw/engines/eevee_next/eevee_view.cc b/source/blender/draw/engines/eevee_next/eevee_view.cc
index 8052ea76def..55741bee4df 100644
--- a/source/blender/draw/engines/eevee_next/eevee_view.cc
+++ b/source/blender/draw/engines/eevee_next/eevee_view.cc
@@ -95,7 +95,7 @@ void ShadingView::render()
     return;
   }
 
-  /* Query temp textures and create framebuffers. */
+  /* Query temp textures and create frame-buffers. */
   /* HACK: View name should be unique and static.
    * With this, we can reuse the same texture across views. */
   DrawEngineType *owner = (DrawEngineType *)name_;
diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h
index 6d384c599d8..419b13edf1f 100644
--- a/source/blender/draw/intern/draw_manager.h
+++ b/source/blender/draw/intern/draw_manager.h
@@ -533,10 +533,12 @@ typedef struct DRWData {
   void *volume_grids_ubos; /* VolumeUniformBufPool */
   /** List of smoke textures to free after drawing. */
   ListBase smoke_textures;
-  /** Texture pool to reuse temp texture across engines. */
-  /* TODO(@fclem): The pool could be shared even between view-ports. */
+  /**
+   * Texture pool to reuse temp texture across engines.
+   * TODO(@fclem): The pool could be shared even between view-ports.
+   */
   struct DRWTexturePool *texture_pool;
-  /** Per stereo view data. Contains engine data and default framebuffers. */
+  /** Per stereo view data. Contains engine data and default frame-buffers. */
   struct DRWViewData *view_data[2];
   /** Per draw-call curves object data. */
   struct CurvesUniformBufPool *curves_ubos;
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_density.cc b/source/blender/editors/sculpt_paint/curves_sculpt_density.cc
index 6ad3d0e4aad..907c2c29c42 100644
--- a/source/blender/editors/sculpt_paint/curves_sculpt_density.cc
+++ b/source/blender/editors/sculpt_paint/curves_sculpt_density.cc
@@ -595,7 +595,7 @@ struct DensitySubtractOperationExecutor {
           return curves_to_delete[curve_i];
         });
 
-    /* Remove deleted curves fromt he stored deformed root positions. */
+    /* Remove deleted curves from the stored deformed root positions. */
     const Vector<IndexRange> ranges_to_keep = mask_to_delete.extract_ranges_invert(
         curves_->curves_range());
     BLI_assert(curves_->curves_num() == self_->deformed_root_positions_.size());
diff --git a/source/blender/editors/space_image/image_undo.cc b/source/blender/editors/space_image/image_undo.cc
index 986265afee0..0fe0414c177 100644
--- a/source/blender/editors/space_image/image_undo.cc
+++ b/source/blender/editors/space_image/image_undo.cc
@@ -22,10 +22,10 @@
 #include "MEM_guardedalloc.h"
 
 #include "BLI_blenlib.h"
+#include "BLI_map.hh"
 #include "BLI_math.h"
 #include "BLI_threads.h"
 #include "BLI_utildefines.h"
-#include "BLI_map.hh"
 
 #include "DNA_image_types.h"
 #include "DNA_object_types.h"
@@ -178,8 +178,8 @@ void *ED_image_paint_tile_find(PaintTileMap *paint_tile_map,
   if (r_mask) {
     /* allocate mask if requested. */
     if (!ptile->mask) {
-      ptile->mask = static_cast<uint16_t *>(MEM_callocN(sizeof(uint16_t) * square_i(ED_IMAGE_UNDO_TILE_SIZE),
-                                          "UndoImageTile.mask"));
+      ptile->mask = static_cast<uint16_t *>(
+          MEM_callocN(sizeof(uint16_t) * square_i(ED_IMAGE_UNDO_TILE_SIZE), "UndoImageTile.mask"));
     }
     *r_mask = ptile->mask;
   }
@@ -224,7 +224,7 @@ void *ED_image_paint_tile_push(PaintTileMap *paint_tile_map,
     *tmpibuf = imbuf_alloc_temp_tile();
   }
 
-  PaintTile *ptile = static_cast<PaintTile*>(MEM_callocN(sizeof(PaintTile), "PaintTile"));
+  PaintTile *ptile = static_cast<PaintTile *>(MEM_callocN(sizeof(PaintTile), "PaintTile"));
 
   ptile->image = image;
   ptile->ibuf = ibuf;
@@ -236,8 +236,8 @@ void *ED_image_paint_tile_push(PaintTileMap *paint_tile_map,
 
   /* add mask explicitly here */
   if (r_mask) {
-    *r_mask = ptile->mask = static_cast<uint16_t*>(MEM_callocN(sizeof(uint16_t) * square_i(ED_IMAGE_UNDO_TILE_SIZE),
-                                        "PaintTile.mask"));
+    *r_mask = ptile->mask = static_cast<uint16_t *>(
+        MEM_callocN(sizeof(uint16_t) * square_i(ED_IMAGE_UNDO_TILE_SIZE), "PaintTile.mask"));
   }
 
   ptile->rect.pt = MEM_callocN((ibuf->rect_float ? sizeof(float[4]) : sizeof(char[4])) *
@@ -361,12 +361,15 @@ struct UndoImageTile {
 
 static UndoImageTile *utile_alloc(bool has_float)
 {
-  UndoImageTile *utile = static_cast<UndoImageTile *>(MEM_callocN(sizeof(*utile), "ImageUndoTile"));
+  UndoImageTile *utile = static_cast<UndoImageTile *>(
+      MEM_callocN(sizeof(*utile), "ImageUndoTile"));
   if (has_float) {
-    utile->rect.fp = static_cast<float*>(MEM_mallocN(sizeof(float[4]) * square_i(ED_IMAGE_UNDO_TILE_SIZE), __func__));
+    utile->rect.fp = static_cast<float *>(
+        MEM_mallocN(sizeof(float[4]) * square_i(ED_IMAGE_UNDO_TILE_SIZE), __func__));
   }
   else {
-    utile->rect.uint_ptr = static_cast<ui

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list