Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2021-09-01 21:41:23 +10:00
parent 42546db490
commit f8dd0d0dba
10 changed files with 15 additions and 15 deletions

View File

@ -1591,7 +1591,7 @@ void BKE_mesh_transform(Mesh *me, const float mat[4][4], bool do_keys)
MVert *mvert = CustomData_duplicate_referenced_layer(&me->vdata, CD_MVERT, me->totvert);
float(*lnors)[3] = CustomData_duplicate_referenced_layer(&me->ldata, CD_NORMAL, me->totloop);
/* If the referenced l;ayer has been re-allocated need to update pointers stored in the mesh. */
/* If the referenced layer has been re-allocated need to update pointers stored in the mesh. */
BKE_mesh_update_customdata_pointers(me, false);
for (i = 0; i < me->totvert; i++, mvert++) {

View File

@ -2423,7 +2423,7 @@ static void annotation_add_missing_events(bContext *C,
static int annotation_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
{
tGPsdata *p = op->customdata;
/* default exit state - pass through to support MMB view nav, etc. */
/* Default exit state - pass through to support MMB view navigation, etc. */
int estate = OPERATOR_PASS_THROUGH;
/* NOTE(mike erwin): Not quite what I was looking for, but a good start!

View File

@ -3568,7 +3568,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
// ToolSettings *ts = CTX_data_tool_settings(C);
GP_Sculpt_Guide *guide = &p->scene->toolsettings->gp_sculpt.guide;
/* default exit state - pass through to support MMB view nav, etc. */
/* Default exit state - pass through to support MMB view navigation, etc. */
int estate = OPERATOR_PASS_THROUGH;
/* NOTE(mike erwin): Not quite what I was looking for, but a good start!

View File

@ -3100,7 +3100,7 @@ void OBJECT_OT_ocean_bake(wmOperatorType *ot)
/** \} */
/* ------------------------------------------------------------------- */
/** \name Laplaciandeform Bind Operator
/** \name Laplacian-Deform Bind Operator
* \{ */
static bool laplaciandeform_poll(bContext *C)

View File

@ -140,7 +140,7 @@ bool ED_workspace_layout_delete(WorkSpace *workspace, WorkSpaceLayout *layout_ol
BLI_assert(BLI_findindex(&workspace->layouts, layout_old) != -1);
/* don't allow deleting temp fullscreens for now */
/* Don't allow deleting temp full-screens for now. */
if (BKE_screen_is_fullscreen_area(screen_old)) {
return false;
}

View File

@ -536,9 +536,9 @@ static void action_listener(const wmSpaceTypeListenerParams *params)
saction->runtime.flag |= SACTION_RUNTIME_FLAG_NEED_CHAN_SYNC;
ED_area_tag_refresh(area);
}
/* autocolor only really needs to change when channels are added/removed,
/* Auto-color only really needs to change when channels are added/removed,
* or previously hidden stuff appears
* (assume for now that if just adding these works, that will be fine)
* (assume for now that if just adding these works, that will be fine).
*/
else if (((wmn->data == ND_KEYFRAME) && ELEM(wmn->action, NA_ADDED, NA_REMOVED)) ||
((wmn->data == ND_ANIMCHAN) && (wmn->action != NA_SELECTED))) {

View File

@ -556,8 +556,8 @@ static void graph_listener(const wmSpaceTypeListenerParams *params)
/* context changes */
switch (wmn->category) {
case NC_ANIMATION:
/* for selection changes of animation data, we can just redraw...
* otherwise autocolor might need to be done again */
/* For selection changes of animation data, we can just redraw...
* otherwise auto-color might need to be done again. */
if (ELEM(wmn->data, ND_KEYFRAME, ND_ANIMCHAN) && (wmn->action == NA_SELECTED)) {
ED_area_tag_redraw(area);
}

View File

@ -183,7 +183,7 @@ static bool idprop_ui_data_update_int(IDProperty *idprop, PyObject *args, PyObje
}
}
/* Write back to the proeprty's UI data. */
/* Write back to the properties UI data. */
IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
*ui_data_orig = ui_data;
return true;
@ -310,7 +310,7 @@ static bool idprop_ui_data_update_float(IDProperty *idprop, PyObject *args, PyOb
}
}
/* Write back to the proeprty's UI data. */
/* Write back to the properties UI data. */
IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
*ui_data_orig = ui_data;
return true;
@ -348,7 +348,7 @@ static bool idprop_ui_data_update_string(IDProperty *idprop, PyObject *args, PyO
ui_data.default_value = BLI_strdup(default_value);
}
/* Write back to the proeprty's UI data. */
/* Write back to the properties UI data. */
IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
*ui_data_orig = ui_data;
return true;
@ -376,7 +376,7 @@ static bool idprop_ui_data_update_id(IDProperty *idprop, PyObject *args, PyObjec
return false;
}
/* Write back to the proeprty's UI data. */
/* Write back to the properties UI data. */
IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
*ui_data_orig = ui_data;
return true;

View File

@ -41,7 +41,7 @@ struct Sequence;
* The `__LINE__` is defined at the invocation of the `SEQ_ITERATOR_FOREACH` and is not changed
* afterwards. This makes it safe to expand it several times in the `SEQ_ITERATOR_FOREACH`.
*
* This allows to have nested foreach loops.
* This allows to have nested `foreach` loops.
*
* NOTE: Putting nested loop to a wrapper macro is not supported. */
#define _SEQ_ITERATOR_NAME_JOIN(x, y) x##_##y

View File

@ -604,7 +604,7 @@ static const char *wm_context_member_from_ptr(bContext *C, const PointerRNA *ptr
#endif
/**
* Calculate the path to `ptr` from constex `C`, or return NULL if it can't be calculated.
* Calculate the path to `ptr` from context `C`, or return NULL if it can't be calculated.
*/
char *WM_context_path_resolve_property_full(bContext *C,
const PointerRNA *ptr,