diff options
author | Hans Goudey <h.goudey@me.com> | 2022-01-24 07:34:56 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-01-24 07:34:56 +0300 |
commit | 46475b8e1164ffbfc6fe4c61ec1c6f59fa3045a8 (patch) | |
tree | 4c4033201fc9b019f92a1a80897fbb46c95591be | |
parent | 43e3a33082586982e0daa7f00df11df7dc1a3837 (diff) |
Cleanup: Grammar: its self vs. itself
26 files changed, 33 insertions, 33 deletions
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 (type == TSE_GP_LAYER) { - /* idv is the layer its self */ + /* idv is the layer itself */ id = TREESTORE(parent)->id; } diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 3c0ffa29bbd..430ffe6d56f 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -796,7 +796,7 @@ static int text_run_script(bContext *C, ReportList *reports) /* Don't report error messages while live editing */ if (!is_live) { - /* text may have freed its self */ + /* text may have freed itself */ if (CTX_data_edit_text(C) == text) { if (text->curl != curl_prev || curc_prev != text->curc) { text_update_cursor_moved(C); diff --git a/source/blender/editors/transform/transform_mode_edge_slide.c b/source/blender/editors/transform/transform_mode_edge_slide.c index 7a0f2743a98..223f2511c72 100644 --- a/source/blender/editors/transform/transform_mode_edge_slide.c +++ b/source/blender/editors/transform/transform_mode_edge_slide.c @@ -195,7 +195,7 @@ static bool bm_loop_calc_opposite_co(BMLoop *l_tmp, const float plane_no[3], flo /* allow some overlap to avoid missing the intersection because of float precision */ if ((fac > -FLT_EPSILON) && (fac < 1.0f + FLT_EPSILON)) { /* likelihood of multiple intersections per ngon is quite low, - * it would have to loop back on its self, but better support it + * it would have to loop back on itself, but better support it * so check for the closest opposite edge */ const float tdist = len_v3v3(l_tmp->v->co, tvec); if (tdist < dist) { diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index 2ec58181394..dafae6f2eb7 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -71,7 +71,7 @@ typedef struct RegionView3D { float clip_local[6][4]; struct BoundBox *clipbb; - /** Allocated backup of its self while in local-view. */ + /** Allocated backup of itself while in local-view. */ struct RegionView3D *localvd; struct RenderEngine *render_engine; @@ -302,7 +302,7 @@ typedef struct View3D { struct Object *camera, *ob_center; rctf render_border; - /** Allocated backup of its self while in local-view. */ + /** Allocated backup of itself while in local-view. */ struct View3D *localvd; /** Optional string for armature bone to define center, MAXBONENAME. */ diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 2d499dd113f..c5581c01921 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -240,7 +240,7 @@ typedef enum PropertyFlag { PROP_ID_REFCOUNT = (1 << 6), /** - * Disallow assigning a variable to its self, eg an object tracking its self + * Disallow assigning a variable to itself, eg an object tracking itself * only apply this to types that are derived from an ID (). */ PROP_ID_SELF_CHECK = (1 << 20), diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index b64fa58cf6b..63eb016b5de 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -3260,10 +3260,10 @@ void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *val rna_idproperty_touch(idprop); } else if (sprop->set) { - sprop->set(ptr, value); /* set function needs to clamp its self */ + sprop->set(ptr, value); /* set function needs to clamp itself */ } else if (sprop->set_ex) { - sprop->set_ex(ptr, prop, value); /* set function needs to clamp its self */ + sprop->set_ex(ptr, prop, value); /* set function needs to clamp itself */ } else if (prop->flag & PROP_EDITABLE) { IDProperty *group; @@ -3292,11 +3292,11 @@ void RNA_property_string_set_bytes(PointerRNA *ptr, PropertyRNA *prop, const cha } else if (sprop->set) { /* XXX, should take length argument (currently not used). */ - sprop->set(ptr, value); /* set function needs to clamp its self */ + sprop->set(ptr, value); /* set function needs to clamp itself */ } else if (sprop->set_ex) { /* XXX, should take length argument (currently not used). */ - sprop->set_ex(ptr, prop, value); /* set function needs to clamp its self */ + sprop->set_ex(ptr, prop, value); /* set function needs to clamp itself */ } else if (prop->flag & PROP_EDITABLE) { IDProperty *group; diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index 552cd836d76..b0acd30dc04 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -3157,7 +3157,7 @@ static void rna_def_mesh(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Loop Triangles", "Tessellation of mesh polygons into triangles"); rna_def_mesh_looptris(brna, prop); - /* TODO: should this be allowed to be its self? */ + /* TODO: should this be allowed to be itself? */ prop = RNA_def_property(srna, "texture_mesh", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "texcomesh"); RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index 3e150d03bf0..85955c5e9f7 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -2984,14 +2984,14 @@ static void rna_def_function(BlenderRNA *brna) RNA_def_property_ui_text( prop, "No Self", - "Function does not pass its self as an argument (becomes a static method in python)"); + "Function does not pass itself as an argument (becomes a static method in python)"); prop = RNA_def_property(srna, "use_self_type", PROP_BOOLEAN, PROP_NONE); RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_boolean_funcs(prop, "rna_Function_use_self_type_get", NULL); RNA_def_property_ui_text(prop, "Use Self Type", - "Function passes its self type as an argument (becomes a class method " + "Function passes itself type as an argument (becomes a class method " "in python if use_self is false)"); } diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c b/source/blender/modifiers/intern/MOD_correctivesmooth.c index 9e8f5bee396..49ff4acb31f 100644 --- a/source/blender/modifiers/intern/MOD_correctivesmooth.c +++ b/source/blender/modifiers/intern/MOD_correctivesmooth.c @@ -588,7 +588,7 @@ static void correctivesmooth_modifier_do(ModifierData *md, CorrectiveSmoothModifierData *csmd = (CorrectiveSmoothModifierData *)md; const bool force_delta_cache_update = - /* XXX, take care! if mesh data its self changes we need to forcefully recalculate deltas */ + /* XXX, take care! if mesh data itself changes we need to forcefully recalculate deltas */ !cache_settings_equal(csmd) || ((csmd->rest_source == MOD_CORRECTIVESMOOTH_RESTSOURCE_ORCO) && (((ID *)ob->data)->recalc & ID_RECALC_ALL)); diff --git a/source/blender/python/intern/bpy_interface_run.c b/source/blender/python/intern/bpy_interface_run.c index bc21c91074f..79744090cc3 100644 --- a/source/blender/python/intern/bpy_interface_run.c +++ b/source/blender/python/intern/bpy_interface_run.c @@ -180,7 +180,7 @@ static bool python_script_exec( if (!py_result) { if (text) { if (do_jump) { - /* ensure text is valid before use, the script may have freed its self */ + /* ensure text is valid before use, the script may have freed itself */ Main *bmain_new = CTX_data_main(C); if ((bmain_old == bmain_new) && (BLI_findindex(&bmain_new->texts, text) != -1)) { python_script_error_jump_text(text); diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 2e305c0bf3c..9e4d8e733a6 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -636,12 +636,12 @@ bool WM_operator_poll_context(struct bContext *C, struct wmOperatorType *ot, sho * * \param store: Store settings for re-use. * - * \warning do not use this within an operator to call its self! T29537. + * \warning do not use this within an operator to call itself! T29537. */ int WM_operator_call_ex(struct bContext *C, struct wmOperator *op, bool store); int WM_operator_call(struct bContext *C, struct wmOperator *op); /** - * This is intended to be used when an invoke operator wants to call exec on its self + * This is intended to be used when an invoke operator wants to call exec on itself * and is basically like running op->type->exec() directly, no poll checks no freeing, * since we assume whoever called invoke will take care of that */ |