[Bf-blender-cvs] [46475b8e116] master: Cleanup: Grammar: its self vs. itself

Hans Goudey noreply at git.blender.org
Mon Jan 24 05:35:13 CET 2022


Commit: 46475b8e1164ffbfc6fe4c61ec1c6f59fa3045a8
Author: Hans Goudey
Date:   Sun Jan 23 22:34:56 2022 -0600
Branches: master
https://developer.blender.org/rB46475b8e1164ffbfc6fe4c61ec1c6f59fa3045a8

Cleanup: Grammar: its self vs. itself

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

M	doc/python_api/rst/info_gotcha.rst
M	release/scripts/modules/bpy_extras/io_utils.py
M	release/scripts/modules/console_python.py
M	release/scripts/modules/rna_xml.py
M	release/scripts/startup/bl_operators/wm.py
M	release/scripts/templates_py/operator_modal_timer.py
M	source/blender/blenkernel/intern/mesh_mirror.c
M	source/blender/blenlib/BLI_mempool.h
M	source/blender/blenlib/intern/list_sort_impl.h
M	source/blender/blenlib/intern/polyfill_2d.c
M	source/blender/bmesh/intern/bmesh_mesh_convert.cc
M	source/blender/bmesh/tools/bmesh_decimate_collapse.c
M	source/blender/editors/include/ED_mesh.h
M	source/blender/editors/interface/interface.c
M	source/blender/editors/mesh/editmesh_intersect.c
M	source/blender/editors/space_outliner/outliner_tree.cc
M	source/blender/editors/space_text/text_ops.c
M	source/blender/editors/transform/transform_mode_edge_slide.c
M	source/blender/makesdna/DNA_view3d_types.h
M	source/blender/makesrna/RNA_types.h
M	source/blender/makesrna/intern/rna_access.c
M	source/blender/makesrna/intern/rna_mesh.c
M	source/blender/makesrna/intern/rna_rna.c
M	source/blender/modifiers/intern/MOD_correctivesmooth.c
M	source/blender/python/intern/bpy_interface_run.c
M	source/blender/windowmanager/WM_api.h

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

diff --git a/doc/python_api/rst/info_gotcha.rst b/doc/python_api/rst/info_gotcha.rst
index 7361f3e9ade..867599dab68 100644
--- a/doc/python_api/rst/info_gotcha.rst
+++ b/doc/python_api/rst/info_gotcha.rst
@@ -743,7 +743,7 @@ will re-allocate objects data,
 any references to a meshes vertices/polygons/UVs, armatures bones,
 curves points, etc. cannot be accessed after switching mode.
 
-Only the reference to the data its self can be re-accessed, the following example will crash.
+Only the reference to the data itself can be re-accessed, the following example will crash.
 
 .. code-block:: python
 
diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py
index a3b39853b3a..65d8ce67578 100644
--- a/release/scripts/modules/bpy_extras/io_utils.py
+++ b/release/scripts/modules/bpy_extras/io_utils.py
@@ -546,7 +546,7 @@ def unique_name(key, name, name_dict, name_max=-1, clean_func=None, sep="."):
 
     :arg key: unique item this name belongs to, name_dict[key] will be reused
        when available.
-       This can be the object, mesh, material, etc instance its self.
+       This can be the object, mesh, material, etc instance itself.
     :type key: any hashable object associated with the *name*.
     :arg name: The name used to create a unique value in *name_dict*.
     :type name: string
diff --git a/release/scripts/modules/console_python.py b/release/scripts/modules/console_python.py
index 9e1b921774d..637fc9ed8b6 100644
--- a/release/scripts/modules/console_python.py
+++ b/release/scripts/modules/console_python.py
@@ -272,7 +272,7 @@ def autocomplete(context):
         sc.select_end += ofs
     except:
         # unlikely, but this can happen with unicode errors for example.
-        # or if the api attribute access its self causes an error.
+        # or if the api attribute access itself causes an error.
         import traceback
         scrollback_error = traceback.format_exc()
 
diff --git a/release/scripts/modules/rna_xml.py b/release/scripts/modules/rna_xml.py
index a36b262c883..7f7b273c42b 100644
--- a/release/scripts/modules/rna_xml.py
+++ b/release/scripts/modules/rna_xml.py
@@ -122,7 +122,7 @@ def rna2xml(
         if issubclass(value_type, skip_classes):
             return
 
-        # XXX, fixme, pointcache has eternal nested pointer to its self.
+        # XXX, fixme, pointcache has eternal nested pointer to itself.
         if value == parent:
             return
 
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 3a46bb7fb53..ce8bfa3b058 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -581,7 +581,7 @@ class WM_OT_context_cycle_enum(Operator):
 
         # Have the info we need, advance to the next item.
         #
-        # When wrap's disabled we may set the value to its self,
+        # When wrap's disabled we may set the value to itself,
         # this is done to ensure update callbacks run.
         if self.reverse:
             if orig_index == 0:
diff --git a/release/scripts/templates_py/operator_modal_timer.py b/release/scripts/templates_py/operator_modal_timer.py
index 11530f18829..19c003712ad 100644
--- a/release/scripts/templates_py/operator_modal_timer.py
+++ b/release/scripts/templates_py/operator_modal_timer.py
@@ -2,7 +2,7 @@ import bpy
 
 
 class ModalTimerOperator(bpy.types.Operator):
-    """Operator which runs its self from a timer"""
+    """Operator which runs itself from a timer"""
     bl_idname = "wm.modal_timer_operator"
     bl_label = "Modal Timer Operator"
 
diff --git a/source/blender/blenkernel/intern/mesh_mirror.c b/source/blender/blenkernel/intern/mesh_mirror.c
index 652399a7294..abc0b518d92 100644
--- a/source/blender/blenkernel/intern/mesh_mirror.c
+++ b/source/blender/blenkernel/intern/mesh_mirror.c
@@ -236,7 +236,7 @@ Mesh *BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(MirrorModifierData *mmd,
   }
 
   /* Copy custom-data to new geometry,
-   * copy from its self because this data may have been created in the checks above. */
+   * copy from itself because this data may have been created in the checks above. */
   CustomData_copy_data(&result->vdata, &result->vdata, 0, maxVerts, maxVerts);
   CustomData_copy_data(&result->edata, &result->edata, 0, maxEdges, maxEdges);
   /* loops are copied later */
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h
index d1999a468b8..caf946cabe3 100644
--- a/source/blender/blenlib/BLI_mempool.h
+++ b/source/blender/blenlib/BLI_mempool.h
@@ -62,7 +62,7 @@ void BLI_mempool_clear_ex(BLI_mempool *pool, int totelem_reserve) ATTR_NONNULL(1
  */
 void BLI_mempool_clear(BLI_mempool *pool) ATTR_NONNULL(1);
 /**
- * Free the mempool its self (and all elements).
+ * Free the mempool itself (and all elements).
  */
 void BLI_mempool_destroy(BLI_mempool *pool) ATTR_NONNULL(1);
 int BLI_mempool_len(const BLI_mempool *pool) ATTR_NONNULL(1);
diff --git a/source/blender/blenlib/intern/list_sort_impl.h b/source/blender/blenlib/intern/list_sort_impl.h
index 71f7f0e29a8..626956e2fb6 100644
--- a/source/blender/blenlib/intern/list_sort_impl.h
+++ b/source/blender/blenlib/intern/list_sort_impl.h
@@ -34,7 +34,7 @@
  * - `SORT_IMPL_LINKTYPE`:
  *   Struct type for sorting.
  * - `SORT_IMPL_LINKTYPE_DATA`:
- *   Data pointer or leave undefined to pass the link its self.
+ *   Data pointer or leave undefined to pass the link itself.
  * - `SORT_IMPL_FUNC`:
  *   Function name of the sort function.
  *
diff --git a/source/blender/blenlib/intern/polyfill_2d.c b/source/blender/blenlib/intern/polyfill_2d.c
index 0ade306bcb9..aec34659884 100644
--- a/source/blender/blenlib/intern/polyfill_2d.c
+++ b/source/blender/blenlib/intern/polyfill_2d.c
@@ -25,7 +25,7 @@
  *   and that triangles will have non-overlapping indices (even for degenerate geometry).
  * - Self-intersections are considered degenerate (resulting triangles will overlap).
  * - While multiple polygons aren't supported, holes can still be defined using *key-holes*
- *   (where the polygon doubles back on its self with *exactly* matching coordinates).
+ *   (where the polygon doubles back on itself with *exactly* matching coordinates).
  *
  * \note
  *
diff --git a/source/blender/bmesh/intern/bmesh_mesh_convert.cc b/source/blender/bmesh/intern/bmesh_mesh_convert.cc
index 72d105a7198..d6c642ff80b 100644
--- a/source/blender/bmesh/intern/bmesh_mesh_convert.cc
+++ b/source/blender/bmesh/intern/bmesh_mesh_convert.cc
@@ -40,7 +40,7 @@
  *
  * - The active key-block is used for BMesh vertex locations on entering edit-mode.
  *   So obviously the meshes vertex locations remain unchanged and the shape key
- *   its self is not being edited directly.
+ *   itself is not being edited directly.
  *   Simply the #BMVert.co is a initialized from active shape key (when its set).
  * - All key-blocks are added as CustomData layers (read code for details).
  *
diff --git a/source/blender/bmesh/tools/bmesh_decimate_collapse.c b/source/blender/bmesh/tools/bmesh_decimate_collapse.c
index e90e50ef8ff..c653b2b8007 100644
--- a/source/blender/bmesh/tools/bmesh_decimate_collapse.c
+++ b/source/blender/bmesh/tools/bmesh_decimate_collapse.c
@@ -847,7 +847,7 @@ BLI_INLINE int bm_edge_is_manifold_or_boundary(BMLoop *l)
   /* less optimized version of check below */
   return (BM_edge_is_manifold(l->e) || BM_edge_is_boundary(l->e);
 #else
-  /* if the edge is a boundary it points to its self, else this must be a manifold */
+  /* if the edge is a boundary it points to itself, else this must be a manifold */
   return LIKELY(l) && LIKELY(l->radial_next->radial_next == l);
 #endif
 }
@@ -855,7 +855,7 @@ BLI_INLINE int bm_edge_is_manifold_or_boundary(BMLoop *l)
 static bool bm_edge_collapse_is_degenerate_topology(BMEdge *e_first)
 {
   /* simply check that there is no overlap between faces and edges of each vert,
-   * (excluding the 2 faces attached to 'e' and 'e' its self) */
+   * (excluding the 2 faces attached to 'e' and 'e' itself) */
 
   BMEdge *e_iter;
 
diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h
index c6f02cb3bcf..0721aa21a16 100644
--- a/source/blender/editors/include/ED_mesh.h
+++ b/source/blender/editors/include/ED_mesh.h
@@ -61,7 +61,7 @@ struct wmOperator;
 
 /**
  * \param em: Edit-mesh used for generating mirror data.
- * \param use_self: Allow a vertex to point to its self (middle verts).
+ * \param use_self: Allow a vertex to point to itself (middle verts).
  * \param use_select: Restrict to selected verts.
  * \param respecthide: Skip hidden vertices.
  * \param use_topology: Use topology mirror.
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 3c701cc403b..636281ba373 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -4900,7 +4900,7 @@ int UI_autocomplete_end(AutoComplete *autocpl, char *autoname)
     BLI_strncpy(autoname, autocpl->truncate, autocpl->maxlen);
   }
   else {
-    if (autoname != autocpl->startname) { /* don't copy a string over its self */
+    if (autoname != autocpl->startname) { /* don't copy a string over itself */
       BLI_strncpy(autoname, autocpl->startname, autocpl->maxlen);
     }
   }
diff --git a/source/blender/editors/mesh/editmesh_intersect.c b/source/blender/editors/mesh/editmesh_intersect.c
index 18fe9cf7ad3..81dc34f894f 100644
--- a/source/blender/editors/mesh/editmesh_intersect.c
+++ b/source/blender/editors/mesh/editmesh_intersect.c
@@ -57,7 +57,7 @@
 #define USE_NET_ISLAND_CONNECT
 
 /**
- * Compare selected with its self.
+ * Compare selected with itself.
  */
 static int bm_face_isect_self(BMFace *f, void *UNUSED(user_data))
 {
diff --git a/source/blender/editors/space_outliner/outliner_tree.cc b/source/blender/editors/space_outliner/outliner_tree.cc
index edf9abdd0b8..3454a27ce13 100644
--- a/source/blender/editors/space_outliner/outliner_tree.cc
+++ b/source/blender/editors/space_outliner/outliner_tree.cc
@@ -828,7 +828,7 @@ TreeElement *outliner_add_element(SpaceOutliner *space_outliner,
     }
   }
   else if 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list