[Bf-blender-cvs] [a0a7db9f704] master: Cleanup: duplicate words in comments

Campbell Barton noreply at git.blender.org
Sat Dec 17 04:13:56 CET 2022


Commit: a0a7db9f704d28673b73e124874d5571adc5eb42
Author: Campbell Barton
Date:   Sat Dec 17 14:11:11 2022 +1100
Branches: master
https://developer.blender.org/rBa0a7db9f704d28673b73e124874d5571adc5eb42

Cleanup: duplicate words in comments

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

M	source/blender/blenkernel/BKE_mesh_runtime.h
M	source/blender/blenkernel/intern/object_update.cc
M	source/blender/blenlib/BLI_span.hh
M	source/blender/depsgraph/DEG_depsgraph_query.h
M	source/blender/depsgraph/intern/builder/deg_builder_key.h
M	source/blender/editors/mesh/editmesh_knife.c

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

diff --git a/source/blender/blenkernel/BKE_mesh_runtime.h b/source/blender/blenkernel/BKE_mesh_runtime.h
index 083f83ef059..e2346f3a74d 100644
--- a/source/blender/blenkernel/BKE_mesh_runtime.h
+++ b/source/blender/blenkernel/BKE_mesh_runtime.h
@@ -28,7 +28,7 @@ struct Scene;
 int BKE_mesh_runtime_looptri_len(const struct Mesh *mesh);
 
 /**
- * Return mesh triangulation data, calculated lazily when necessary necessary.
+ * Return mesh triangulation data, calculated lazily when necessary.
  * See #MLoopTri for further description of mesh triangulation.
  *
  * \note Prefer #Mesh::looptris() in C++ code.
diff --git a/source/blender/blenkernel/intern/object_update.cc b/source/blender/blenkernel/intern/object_update.cc
index 106c9594718..625aa666023 100644
--- a/source/blender/blenkernel/intern/object_update.cc
+++ b/source/blender/blenkernel/intern/object_update.cc
@@ -142,7 +142,7 @@ void BKE_object_handle_data_update(Depsgraph *depsgraph, Scene *scene, Object *o
       CustomData_MeshMasks_update(&cddata_masks, &CD_MASK_BAREMESH);
       /* Custom attributes should not be removed automatically. They might be used by the render
        * engine or scripts. They can still be removed explicitly using geometry nodes.
-       * Crease can be be used in generic situations with geometry nodes as well. */
+       * Crease can be used in generic situations with geometry nodes as well. */
       cddata_masks.vmask |= CD_MASK_PROP_ALL | CD_MASK_CREASE;
       cddata_masks.emask |= CD_MASK_PROP_ALL | CD_MASK_CREASE;
       cddata_masks.fmask |= CD_MASK_PROP_ALL;
diff --git a/source/blender/blenlib/BLI_span.hh b/source/blender/blenlib/BLI_span.hh
index 94464ef5088..84a5c87d423 100644
--- a/source/blender/blenlib/BLI_span.hh
+++ b/source/blender/blenlib/BLI_span.hh
@@ -152,7 +152,7 @@ template<typename T> class Span {
 
   /**
    * Returns a contiguous part of the array. This invokes undefined behavior when the start or size
-   * is negative. Clamps the size of the new new span so it fits in the current one.
+   * is negative. Clamps the size of the new span so it fits in the current one.
    */
   constexpr Span slice_safe(const int64_t start, const int64_t size) const
   {
@@ -608,7 +608,7 @@ template<typename T> class MutableSpan {
 
   /**
    * Returns a contiguous part of the array. This invokes undefined behavior when the start or size
-   * is negative. Clamps the size of the new new span so it fits in the current one.
+   * is negative. Clamps the size of the new span so it fits in the current one.
    */
   constexpr MutableSpan slice_safe(const int64_t start, const int64_t size) const
   {
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h
index 4a9025641f9..94cb9757867 100644
--- a/source/blender/depsgraph/DEG_depsgraph_query.h
+++ b/source/blender/depsgraph/DEG_depsgraph_query.h
@@ -162,7 +162,7 @@ typedef struct DEGObjectIterSettings {
 } DEGObjectIterSettings;
 
 /**
- * Flags to to get objects for draw manager and final render.
+ * Flags to get objects for draw manager and final render.
  */
 #define DEG_OBJECT_ITER_FOR_RENDER_ENGINE_FLAGS \
   DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY | DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET | \
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_key.h b/source/blender/depsgraph/intern/builder/deg_builder_key.h
index 4f8b2dc9f8f..519872a3387 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_key.h
+++ b/source/blender/depsgraph/intern/builder/deg_builder_key.h
@@ -139,9 +139,9 @@ struct OperationKey {
   int name_tag = -1;
 };
 
-/* Similar to the the OperationKey but does not contain external references, which makes it
+/* Similar to the #OperationKey but does not contain external references, which makes it
  * suitable to identify operations even after the original database or graph was destroyed.
- * The downside of this key over the OperationKey is that it performs string allocation upon
+ * The downside of this key over the #OperationKey is that it performs string allocation upon
  * the key construction. */
 struct PersistentOperationKey : public OperationKey {
   /* Create the key which identifies the given operation node. */
@@ -155,7 +155,7 @@ struct PersistentOperationKey : public OperationKey {
     component_name_storage_ = component_node->name;
     name_storage_ = operation_node->name;
 
-    /* Assign fields used by the OperationKey API.  */
+    /* Assign fields used by the #OperationKey API.  */
     id = id_node->id_orig;
     component_type = component_node->type;
     component_name = component_name_storage_.c_str();
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index dbe77805dd8..b7129b4b4d4 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -4321,7 +4321,7 @@ static void knifetool_finish_single_post(KnifeTool_OpData *UNUSED(kcd), Object *
 static void knifetool_finish_ex(KnifeTool_OpData *kcd)
 {
   /* Separate pre/post passes are needed because `em->looptris` recalculation from the 'post' pass
-   * causes causes triangle indices in #KnifeTool_OpData.bvh to get out of sync.
+   * causes triangle indices in #KnifeTool_OpData.bvh to get out of sync.
    * So perform all the cuts before doing any mesh recalculation, see: T101721. */
   for (uint ob_index = 0; ob_index < kcd->objects_len; ob_index++) {
     Object *ob = kcd->objects[ob_index];



More information about the Bf-blender-cvs mailing list