Cleanup: Grammar: its self vs. itself

This commit is contained in:
Hans Goudey 2022-01-23 22:34:56 -06:00
parent 43e3a33082
commit 46475b8e11
26 changed files with 33 additions and 33 deletions

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -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

View File

@ -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:

View File

@ -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"

View File

@ -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 */

View File

@ -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);

View File

@ -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.
*

View File

@ -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
*

View File

@ -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).
*

View File

@ -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;

View File

@ -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.

View File

@ -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);
}
}

View File

@ -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))
{

View File

@ -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;
}

View File

@ -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);

View File

@ -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) {

View File

@ -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. */

View File

@ -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),

View File

@ -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;

View File

@ -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);

View File

@ -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)");
}

View File

@ -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));

View File

@ -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);

View File

@ -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
*/