Cleanup: spelling in comments
This commit is contained in:
@@ -2068,7 +2068,7 @@ static void direct_link_id_embedded_id(BlendDataReader *reader,
|
||||
static int direct_link_id_restore_recalc_exceptions(const ID *id_current)
|
||||
{
|
||||
/* Exception for armature objects, where the pose has direct points to the
|
||||
* armature databolock. */
|
||||
* armature data-block. */
|
||||
if (GS(id_current->name) == ID_OB && ((Object *)id_current)->pose) {
|
||||
return ID_RECALC_GEOMETRY;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ void OVERLAY_edit_gpencil_cache_init(OVERLAY_Data *vedata)
|
||||
}
|
||||
}
|
||||
|
||||
/* Handles and curve point for Curve Edit submode. */
|
||||
/* Handles and curve point for Curve Edit sub-mode. */
|
||||
if (GPENCIL_CURVE_EDIT_SESSIONS_ON(gpd)) {
|
||||
DRWState state = DRW_STATE_WRITE_COLOR;
|
||||
DRW_PASS_CREATE(psl->edit_gpencil_curve_ps, state | pd->clipping_state);
|
||||
|
||||
@@ -160,8 +160,8 @@ typedef struct DRWSubdivCache {
|
||||
/* Contains the start loop index and the smooth flag for each coarse polygon. */
|
||||
struct GPUVertBuf *extra_coarse_face_data;
|
||||
|
||||
/* Computed for ibo.points, one value per subdivided vertex, mapping coarse vertices ->
|
||||
* subdivided loop */
|
||||
/* Computed for `ibo.points`, one value per subdivided vertex,
|
||||
* mapping coarse vertices -> subdivided loop. */
|
||||
int *point_indices;
|
||||
|
||||
/* Material offsets. */
|
||||
|
||||
@@ -188,7 +188,7 @@ static void extract_vert_idx_init_subdiv(const DRWSubdivCache *subdiv_cache,
|
||||
{
|
||||
GPUVertBuf *vbo = static_cast<GPUVertBuf *>(buf);
|
||||
const DRWSubdivLooseGeom &loose_geom = subdiv_cache->loose_geom;
|
||||
/* Each element points to an element in the ibo.points. */
|
||||
/* Each element points to an element in the `ibo.points`. */
|
||||
draw_subdiv_init_origindex_buffer(
|
||||
vbo,
|
||||
(int32_t *)GPU_vertbuf_get_data(subdiv_cache->verts_orig_index),
|
||||
|
||||
@@ -221,7 +221,7 @@ enum {
|
||||
UI_BUT_HAS_SEP_CHAR = 1 << 27,
|
||||
/** Don't run updates while dragging (needed in rare cases). */
|
||||
UI_BUT_UPDATE_DELAY = 1 << 28,
|
||||
/** When widget is in textedit mode, update value on each char stroke */
|
||||
/** When widget is in text-edit mode, update value on each char stroke. */
|
||||
UI_BUT_TEXTEDIT_UPDATE = 1 << 29,
|
||||
/** Show 'x' icon to clear/unlink value of text or search button. */
|
||||
UI_BUT_VALUE_CLEAR = 1 << 30,
|
||||
|
||||
@@ -1715,7 +1715,7 @@ static int constraint_copy_to_selected_exec(bContext *C, wmOperator *op)
|
||||
|
||||
Object *prev_ob = NULL;
|
||||
|
||||
/* Copy all constraints from active posebone to all selected posebones. */
|
||||
/* Copy all constraints from active pose-bone to all selected pose-bones. */
|
||||
CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, chan, selected_pose_bones, Object *, ob) {
|
||||
/* If we're not handling the object we're copying from, copy all constraints over. */
|
||||
if (pchan == chan) {
|
||||
@@ -2115,7 +2115,7 @@ static int pose_constraint_copy_exec(bContext *C, wmOperator *op)
|
||||
|
||||
Object *prev_ob = NULL;
|
||||
|
||||
/* copy all constraints from active posebone to all selected posebones */
|
||||
/* Copy all constraints from active pose-bone to all selected pose-bones. */
|
||||
CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, chan, selected_pose_bones, Object *, ob) {
|
||||
/* if we're not handling the object we're copying from, copy all constraints over */
|
||||
if (pchan != chan) {
|
||||
|
||||
@@ -1523,7 +1523,7 @@ static void lineart_identify_mlooptri_feature_edges(void *__restrict userdata,
|
||||
|
||||
uint16_t edge_flag_result = 0;
|
||||
|
||||
/* Because the Edge Neighbour array contains loop edge pairs, we only need to process the first
|
||||
/* Because the edge neighbor array contains loop edge pairs, we only need to process the first
|
||||
* edge in the pair. Otherwise we would add the same edge that the loops represent twice. */
|
||||
if (i < edge_nabr[i].e) {
|
||||
return;
|
||||
@@ -1544,7 +1544,7 @@ static void lineart_identify_mlooptri_feature_edges(void *__restrict userdata,
|
||||
else {
|
||||
/* Handle mesh boundary cases: We want mesh boundaries to respect
|
||||
* `filter_face_mark_boundaries` option the same way as face mark boundaries, and the code
|
||||
* path is simper when it's assuming both ff1 and ff2 not NULL. */
|
||||
* path is simper when it's assuming both ff1 and ff2 not NULL. */
|
||||
ff2 = ff1;
|
||||
}
|
||||
if (e_feat_data->rb->filter_face_mark_boundaries ^ e_feat_data->rb->filter_face_mark_invert) {
|
||||
@@ -1933,7 +1933,7 @@ static void lineart_edge_neighbor_init_task(void *__restrict userdata,
|
||||
|
||||
static LineartEdgeNeighbor *lineart_build_edge_neighbor(Mesh *me, int total_edges)
|
||||
{
|
||||
/* Because the mesh is traingulated, so me->totedge should be reliable? */
|
||||
/* Because the mesh is triangulated, so `me->totedge` should be reliable? */
|
||||
LineartAdjacentEdge *adj_e = MEM_mallocN(sizeof(LineartAdjacentEdge) * total_edges,
|
||||
"LineartAdjacentEdge arr");
|
||||
LineartEdgeNeighbor *edge_nabr = MEM_mallocN(sizeof(LineartEdgeNeighbor) * total_edges,
|
||||
|
||||
@@ -563,7 +563,7 @@ void gpu::MTLTexture::update_sub(
|
||||
return;
|
||||
}
|
||||
|
||||
/* Check Format writeability. */
|
||||
/* Check Format write-ability. */
|
||||
if (mtl_format_get_writeable_view_format(destination_format) == MTLPixelFormatInvalid) {
|
||||
MTL_LOG_ERROR(
|
||||
"[Error]: Updating texture -- destination MTLPixelFormat '%d' does not support write "
|
||||
|
||||
@@ -304,7 +304,7 @@ typedef struct DriverTarget {
|
||||
char *rna_path;
|
||||
|
||||
/**
|
||||
* Name of the posebone to use
|
||||
* Name of the pose-bone to use
|
||||
* (for vars where DTAR_FLAG_STRUCT_REF is used) - `MAX_ID_NAME - 2`.
|
||||
*/
|
||||
char pchan_name[64];
|
||||
@@ -918,9 +918,9 @@ typedef struct KS_Path {
|
||||
/** Index that path affects. */
|
||||
int array_index;
|
||||
|
||||
/** (eInsertKeyFlags) settings to supply insertkey() with. */
|
||||
/** (#eInsertKeyFlags) settings to supply insert-key() with. */
|
||||
short keyingflag;
|
||||
/** (eInsertKeyFlags) for each flag set, the relevant keyingflag bit overrides the default. */
|
||||
/** (#eInsertKeyFlags) for each flag set, the relevant keying-flag bit overrides the default. */
|
||||
short keyingoverride;
|
||||
} KS_Path;
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@ typedef struct bGPDstroke_Runtime {
|
||||
|
||||
/** Vertex offset in the VBO where this stroke starts. */
|
||||
int stroke_start;
|
||||
/** Triangle offset in the ibo where this fill starts. */
|
||||
/** Triangle offset in the IBO where this fill starts. */
|
||||
int fill_start;
|
||||
/** Curve Handles offset in the IBO where this handle starts. */
|
||||
int curve_start;
|
||||
@@ -814,10 +814,10 @@ typedef enum eGPdata_Flag {
|
||||
/* Vertex Paint Mode - Toggle paint mode */
|
||||
GP_DATA_STROKE_VERTEXMODE = (1 << 18),
|
||||
|
||||
/* Autolock not active layers */
|
||||
/* Auto-lock not active layers. */
|
||||
GP_DATA_AUTOLOCK_LAYERS = (1 << 20),
|
||||
|
||||
/* Enable Bezier Editing Curve (a submode of Edit mode). */
|
||||
/* Enable Bezier Editing Curve (a sub-mode of Edit mode). */
|
||||
GP_DATA_CURVE_EDIT_MODE = (1 << 21),
|
||||
/* Use adaptive curve resolution */
|
||||
GP_DATA_CURVE_ADAPTIVE_RESOLUTION = (1 << 22),
|
||||
|
||||
@@ -896,8 +896,10 @@ static void rna_wmKeyMapItem_map_type_set(PointerRNA *ptr, int value)
|
||||
}
|
||||
}
|
||||
|
||||
/* assumes value to be an enum from rna_enum_event_type_items */
|
||||
/* function makes sure keymodifiers are only valid keys, ESC keeps it unaltered */
|
||||
/**
|
||||
* Assumes value to be an enum from rna_enum_event_type_items.
|
||||
* Function makes sure keymodifiers are only valid keys, ESC keeps it unaltered.
|
||||
*/
|
||||
static void rna_wmKeyMapItem_keymodifier_set(PointerRNA *ptr, int value)
|
||||
{
|
||||
wmKeyMapItem *kmi = ptr->data;
|
||||
|
||||
Reference in New Issue
Block a user