Cleanup: Grammar: it's vs its
This commit is contained in:
parent
58d2c7386d
commit
7d935f94f3
@ -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;
|
||||
|
||||
|
@ -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. */
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
|
@ -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. */
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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],
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
"""
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user