diff --git a/source/blender/blenkernel/BKE_editmesh.h b/source/blender/blenkernel/BKE_editmesh.h index d713402ff74..ede7e19f1f1 100644 --- a/source/blender/blenkernel/BKE_editmesh.h +++ b/source/blender/blenkernel/BKE_editmesh.h @@ -59,7 +59,7 @@ typedef struct BMEditMesh { int mirror_cdlayer; /** - * Enable for evaluated copies, causes the edit-mesh to free the memory, not it's contents. + * Enable for evaluated copies, causes the edit-mesh to free the memory, not its contents. */ char is_shallow_copy; diff --git a/source/blender/blenkernel/intern/blendfile.cc b/source/blender/blenkernel/intern/blendfile.cc index 65c292b5f3a..5e40fb1b181 100644 --- a/source/blender/blenkernel/intern/blendfile.cc +++ b/source/blender/blenkernel/intern/blendfile.cc @@ -416,7 +416,7 @@ static void swap_wm_data_for_blendfile(ReuseOldBMainData *reuse_data, const bool * for further processing in WM code. */ if (load_ui && new_wm != nullptr) { /* Support window-manager ID references being held between file load operations by keeping - * #Main.wm.first memory address in-place, while swapping all of it's contents. + * #Main.wm.first memory address in-place, while swapping all of its contents. * * This is needed so items such as key-maps can be held by an add-on, * without it pointing to invalid memory, see: #86431. */ diff --git a/source/blender/bmesh/intern/bmesh_construct.h b/source/blender/bmesh/intern/bmesh_construct.h index 85c2854d43c..4e216d4ccec 100644 --- a/source/blender/bmesh/intern/bmesh_construct.h +++ b/source/blender/bmesh/intern/bmesh_construct.h @@ -139,7 +139,7 @@ void BM_elem_attrs_copy(BMesh *bm_src, BMesh *bm_dst, const void *ele_src_v, voi void BM_elem_select_copy(BMesh *bm_dst, void *ele_dst_v, const void *ele_src_v); /** - * Initialize the `bm_dst` layers in preparation for populating it's contents with multiple meshes. + * Initialize the `bm_dst` layers in preparation for populating its contents with multiple meshes. * Typically done using multiple calls to #BM_mesh_bm_from_me with the same `bm` argument). * * \note While the custom-data layers of all meshes are created, the active layers are set diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c index 92b6ccfc342..4a313090ba6 100644 --- a/source/blender/editors/mesh/editmesh_utils.c +++ b/source/blender/editors/mesh/editmesh_utils.c @@ -661,7 +661,7 @@ static int bm_uv_edge_select_build_islands(UvElementMap *element_map, for (int i = 0; i < total_uvs; i++) { UvElement *element = element_map->storage + i; if (element->island != INVALID_ISLAND) { - /* Unique UV (element and all it's children) are already part of an island. */ + /* Unique UV (element and all its children) are already part of an island. */ continue; } diff --git a/source/blender/editors/space_view3d/view3d_navigate_smoothview.c b/source/blender/editors/space_view3d/view3d_navigate_smoothview.c index fa8c2437dbc..7f02d38243b 100644 --- a/source/blender/editors/space_view3d/view3d_navigate_smoothview.c +++ b/source/blender/editors/space_view3d/view3d_navigate_smoothview.c @@ -34,7 +34,7 @@ static void view3d_smoothview_apply_with_interp( * may need to perform an undo push. * * In this case the smooth-view camera transformation is temporarily completed, - * undo is pushed then the change is rewound, and smooth-view completes from it's timer. + * undo is pushed then the change is rewound, and smooth-view completes from its timer. * In the case smooth-view executed the change immediately - an undo push is called. * * NOTE(@ideasman42): While this is not ideal it's necessary as making the undo-push diff --git a/source/blender/editors/space_view3d/view3d_placement.c b/source/blender/editors/space_view3d/view3d_placement.c index 1e4db88fe29..bcfcdc1370e 100644 --- a/source/blender/editors/space_view3d/view3d_placement.c +++ b/source/blender/editors/space_view3d/view3d_placement.c @@ -80,13 +80,13 @@ struct InteractivePlaceData { struct { /** * When centered, drag out the shape from the center. - * Toggling the setting flips the value from it's initial state. + * Toggling the setting flips the value from its initial state. */ bool is_centered, is_centered_init; /** * When fixed, constrain the X/Y aspect for the initial #STEP_BASE drag. * For #STEP_DEPTH match the maximum X/Y dimension. - * Toggling the setting flips the value from it's initial state. + * Toggling the setting flips the value from its initial state. */ bool is_fixed_aspect, is_fixed_aspect_init; float plane[4]; @@ -124,7 +124,7 @@ struct InteractivePlaceData { } step[2]; - /** When we can't project onto the real plane, use this in it's place. */ + /** When we can't project onto the real plane, use this in its place. */ float view_plane[4]; float matrix_orient[3][3]; diff --git a/source/blender/editors/transform/transform_convert_sequencer.c b/source/blender/editors/transform/transform_convert_sequencer.c index 47cbb8ad17d..2366ec4c38f 100644 --- a/source/blender/editors/transform/transform_convert_sequencer.c +++ b/source/blender/editors/transform/transform_convert_sequencer.c @@ -404,7 +404,7 @@ static SeqCollection *query_time_dependent_strips_strips(TransInfo *t) /* Query dependent strips where used strips do not have handles selected. * If all inputs of any effect even indirectly(through another effect) points to selected strip, - * it's position will change. */ + * its position will change. */ SeqCollection *strips_no_handles = query_selected_strips_no_handles(seqbase); /* Selection is needed as reference for related strips. */ diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.cc b/source/blender/editors/uvedit/uvedit_unwrap_ops.cc index aaf4af66623..918dcfb4d1f 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.cc +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.cc @@ -1527,7 +1527,7 @@ static int pack_islands_exec(bContext *C, wmOperator *op) if (pid->use_job) { /* Setup job. */ if (pid->wm->op_undo_depth == 0) { - /* The job must do it's own undo push. */ + /* The job must do its own undo push. */ pid->undo_context = C; pid->undo_str = op->type->name; } diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index bfd826450c4..ca62313cc54 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -153,7 +153,7 @@ void WM_init_gpu(void); const char *WM_ghost_backend(void); typedef enum eWM_CapabilitiesFlag { - /** Ability to warp the cursor (set it's location). */ + /** Ability to warp the cursor (set its location). */ WM_CAPABILITY_CURSOR_WARP = (1 << 0), /** Ability to access window positions & move them. */ WM_CAPABILITY_WINDOW_POSITION = (1 << 1), @@ -184,7 +184,7 @@ void WM_script_tag_reload(void); wmWindow *WM_window_find_under_cursor(wmWindow *win, const int mval[2], int r_mval[2]); /** - * Knowing the area, return it's screen. + * Knowing the area, return its screen. * \note This should typically be avoided, only use when the context is not available. */ wmWindow *WM_window_find_by_area(wmWindowManager *wm, const struct ScrArea *area); @@ -786,7 +786,7 @@ bool WM_operator_name_poll(struct bContext *C, const char *opstring); * \param event: Optionally pass in an event to use when context uses one of the * `WM_OP_INVOKE_*` values. When left unset the #wmWindow.eventstate will be used, * this can cause problems for operators that read the events type - for example, - * storing the key that was pressed so as to be able to detect it's release. + * storing the key that was pressed so as to be able to detect its release. * In these cases it's necessary to forward the current event being handled. */ int WM_operator_name_call_ptr(struct bContext *C, diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_api.h b/source/blender/windowmanager/gizmo/WM_gizmo_api.h index 3d14f167b56..ddb1c70a039 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_api.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_api.h @@ -114,11 +114,11 @@ void WM_gizmo_set_fn_custom_modal(struct wmGizmo *gz, wmGizmoFnModal fn); void WM_gizmo_set_matrix_location(struct wmGizmo *gz, const float origin[3]); /** - * #wmGizmo.matrix utility, set the orientation by it's Z axis. + * #wmGizmo.matrix utility, set the orientation by its Z axis. */ void WM_gizmo_set_matrix_rotation_from_z_axis(struct wmGizmo *gz, const float z_axis[3]); /** - * #wmGizmo.matrix utility, set the orientation by it's Y/Z axis. + * #wmGizmo.matrix utility, set the orientation by its Y/Z axis. */ void WM_gizmo_set_matrix_rotation_from_yz_axis(struct wmGizmo *gz, const float y_axis[3], @@ -126,11 +126,11 @@ void WM_gizmo_set_matrix_rotation_from_yz_axis(struct wmGizmo *gz, void WM_gizmo_set_matrix_offset_location(struct wmGizmo *gz, const float offset[3]); /** - * #wmGizmo.matrix_offset utility, set the orientation by it's Z axis. + * #wmGizmo.matrix_offset utility, set the orientation by its Z axis. */ void WM_gizmo_set_matrix_offset_rotation_from_z_axis(struct wmGizmo *gz, const float z_axis[3]); /** - * #wmGizmo.matrix_offset utility, set the orientation by it's Y/Z axis. + * #wmGizmo.matrix_offset utility, set the orientation by its Y/Z axis. */ void WM_gizmo_set_matrix_offset_rotation_from_yz_axis(struct wmGizmo *gz, const float y_axis[3], diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c index 7aa837958a5..77b829879ba 100644 --- a/source/blender/windowmanager/intern/wm_draw.c +++ b/source/blender/windowmanager/intern/wm_draw.c @@ -1297,7 +1297,7 @@ uint8_t *WM_window_pixels_read_from_offscreen(bContext *C, wmWindow *win, int r_ * * So provide an alternative to #WM_window_pixels_read that avoids using the front-buffer. */ - /* Draw into an off-screen buffer and read it's contents. */ + /* Draw into an off-screen buffer and read its contents. */ r_size[0] = WM_window_pixels_x(win); r_size[1] = WM_window_pixels_y(win); diff --git a/tests/python/bl_keymap_validate.py b/tests/python/bl_keymap_validate.py index 11da4d562b0..50f23406420 100644 --- a/tests/python/bl_keymap_validate.py +++ b/tests/python/bl_keymap_validate.py @@ -77,7 +77,7 @@ def temp_fn_argument_extractor( mod_attr: str, ) -> Generator[List[Tuple[Tuple[Tuple[Any], ...], Dict[str, Dict[str, Any]]]], None, None]: """ - Temporarily intercept a function, so it's arguments can be extracted. + Temporarily intercept a function, so its arguments can be extracted. The context manager gives us a list where each item is a tuple of arguments & keywords, stored each time the function was called. """ diff --git a/tools/utils_maintenance/code_clean.py b/tools/utils_maintenance/code_clean.py index 8e09d0a182e..3668cde23ba 100755 --- a/tools/utils_maintenance/code_clean.py +++ b/tools/utils_maintenance/code_clean.py @@ -91,7 +91,7 @@ IDENTIFIER_CHARS = set(string.ascii_letters + "_" + string.digits) # ----------------------------------------------------------------------------- # General Utilities -# Note that we could use a hash, however there is no advantage, compare it's contents. +# Note that we could use a hash, however there is no advantage, compare its contents. def file_as_bytes(filename: str) -> bytes: with open(filename, 'rb') as fh: return fh.read()