From 70e73974b593d2fe3adfd9c964274c037fb51887 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 10 Mar 2021 15:47:50 +1100 Subject: Cleanup: spelling --- source/blender/editors/interface/interface_context_menu.c | 2 +- source/blender/editors/interface/interface_handlers.c | 6 +++--- source/blender/editors/interface/interface_templates.c | 6 +++--- source/blender/editors/interface/interface_widgets.c | 2 +- source/blender/editors/mesh/editmesh_rip.c | 4 +++- source/blender/editors/sculpt_paint/sculpt_detail.c | 4 ++-- source/blender/editors/space_outliner/tree/tree_element.hh | 2 +- 7 files changed, 14 insertions(+), 12 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/interface/interface_context_menu.c b/source/blender/editors/interface/interface_context_menu.c index 53a04ec9db5..edfd1ecd539 100644 --- a/source/blender/editors/interface/interface_context_menu.c +++ b/source/blender/editors/interface/interface_context_menu.c @@ -567,7 +567,7 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but) /* Keyframes */ if (but->flag & UI_BUT_ANIMATED_KEY) { - /* replace/delete keyfraemes */ + /* Replace/delete keyframes. */ if (is_array_component) { uiItemBooleanO(layout, CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Replace Keyframes"), diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 834be49b2b3..81da54ade9e 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -7783,7 +7783,7 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent * if ((data->str && ELEM(data->state, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_NUM_EDITING)) || ((abs(data->multi_data.drag_lock_x - event->x) > margin_x) && - /* just to be sure, check we're dragging more hoz then virt */ + /* Just to be sure, check we're dragging more horizontally then vertically. */ abs(event->prevx - event->x) > abs(event->prevy - event->y))) { if (data->multi_data.has_mbuts) { ui_multibut_states_create(but, data); @@ -9332,8 +9332,8 @@ static void ui_mouse_motion_keynav_init(struct uiKeyNavLock *keynav, const wmEve copy_v2_v2_int(keynav->event_xy, &event->x); } /** - * Return true if keyinput isn't blocking mouse-motion, - * or if the mouse-motion is enough to disable keyinput. + * Return true if key-input isn't blocking mouse-motion, + * or if the mouse-motion is enough to disable key-input. */ static bool ui_mouse_motion_keynav_test(struct uiKeyNavLock *keynav, const wmEvent *event) { diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index c5e67e0334e..fed011d78d7 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -6383,9 +6383,9 @@ void uiTemplateList(uiLayout *layout, } if (glob) { - /* About UI_BTYPE_GRIP drag-resize: + /* About #UI_BTYPE_GRIP drag-resize: * We can't directly use results from a grip button, since we have a - * rather complex behavior here (sizing by discrete steps and, overall, autosize feature). + * rather complex behavior here (sizing by discrete steps and, overall, auto-size feature). * Since we *never* know whether we are grip-resizing or not * (because there is no callback for when a button enters/leaves its "edit mode"), * we use the fact that grip-controlled value (dyn_data->resize) is completely handled @@ -6393,7 +6393,7 @@ void uiTemplateList(uiLayout *layout, * * It is only meaningful when we are not resizing, * in which case this gives us the correct "init drag" value. - * Note we cannot affect dyn_data->resize_prev here, + * Note we cannot affect `dyn_data->resize_prev here`, * since this value is not controlled by the grip! */ dyn_data->resize = dyn_data->resize_prev + diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 1d7d10b6d0c..26b2c7a9091 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -658,7 +658,7 @@ static int round_box_shadow_edges( const float maxx = rect->xmax + step; const float maxy = rect->ymax + step; - /* mult */ + /* Multiply. */ for (int a = 0; a < WIDGET_CURVE_RESOLU; a++) { vec[a][0] = rad * cornervec[a][0]; vec[a][1] = rad * cornervec[a][1]; diff --git a/source/blender/editors/mesh/editmesh_rip.c b/source/blender/editors/mesh/editmesh_rip.c index 03b4cda2005..33797573f2b 100644 --- a/source/blender/editors/mesh/editmesh_rip.c +++ b/source/blender/editors/mesh/editmesh_rip.c @@ -97,7 +97,9 @@ static float edbm_rip_linedist( } #endif -/* calculaters a point along the loop tangent which can be used to measure against edges */ +/** + * Calculates a point along the loop tangent which can be used to measure against edges. + */ static void edbm_calc_loop_co(BMLoop *l, float l_mid_co[3]) { BM_loop_calc_face_tangent(l, l_mid_co); diff --git a/source/blender/editors/sculpt_paint/sculpt_detail.c b/source/blender/editors/sculpt_paint/sculpt_detail.c index 1246c624941..188bb0a88eb 100644 --- a/source/blender/editors/sculpt_paint/sculpt_detail.c +++ b/source/blender/editors/sculpt_paint/sculpt_detail.c @@ -125,7 +125,7 @@ static int sculpt_detail_flood_fill_exec(bContext *C, wmOperator *UNUSED(op)) MEM_SAFE_FREE(nodes); SCULPT_undo_push_end(); - /* Force rebuild of pbvh for better BB placement. */ + /* Force rebuild of PBVH for better BB placement. */ SCULPT_pbvh_clear(ob); /* Redraw. */ WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob); @@ -723,7 +723,7 @@ static int dyntopo_detail_size_edit_invoke(bContext *C, wmOperator *op, const wm copy_m4_m4(cd->gizmo_mat, cursor_trans); mul_m4_m4_post(cd->gizmo_mat, cursor_rot); - /* Initize the position of the triangle vertices. */ + /* Initialize the position of the triangle vertices. */ const float y_axis[3] = {0.0f, cd->radius, 0.0f}; for (int i = 0; i < 3; i++) { zero_v3(cd->preview_tri[i]); diff --git a/source/blender/editors/space_outliner/tree/tree_element.hh b/source/blender/editors/space_outliner/tree/tree_element.hh index 4a7e95556db..09bd0eec05d 100644 --- a/source/blender/editors/space_outliner/tree/tree_element.hh +++ b/source/blender/editors/space_outliner/tree/tree_element.hh @@ -40,7 +40,7 @@ class AbstractTreeElement { virtual ~AbstractTreeElement() = default; /** - * Check if the type is expandible in current context. + * Check if the type is expandable in current context. */ virtual bool expandPoll(const SpaceOutliner &) const { -- cgit v1.2.3