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/blenlib/intern/array_utils.c | 4 ++-- source/blender/compositor/intern/COM_NodeGraph.cc | 4 ++-- source/blender/compositor/operations/COM_VectorBlurOperation.cc | 2 +- source/blender/draw/engines/eevee/eevee_depth_of_field.c | 2 +- source/blender/draw/engines/eevee/eevee_effects.c | 2 +- source/blender/draw/engines/eevee/eevee_shadows.c | 2 +- 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 +- source/blender/nodes/geometry/nodes/node_geo_subdivide_smooth.cc | 2 +- 14 files changed, 23 insertions(+), 21 deletions(-) diff --git a/source/blender/blenlib/intern/array_utils.c b/source/blender/blenlib/intern/array_utils.c index 5bf50b029a5..17ee0eecc6b 100644 --- a/source/blender/blenlib/intern/array_utils.c +++ b/source/blender/blenlib/intern/array_utils.c @@ -324,7 +324,7 @@ bool _bli_array_is_zeroed(const void *arr_v, unsigned int arr_len, size_t arr_st * Nice for selection ID. * * \param arr_shape: dimensions [w, h]. - * \param center: coordinates [x, y] indicating where to start transversing. + * \param center: coordinates [x, y] indicating where to start traversing. */ bool _bli_array_iter_spiral_square(const void *arr_v, const int arr_shape[2], @@ -345,7 +345,7 @@ bool _bli_array_iter_spiral_square(const void *arr_v, return true; } - /* #steps_in and #steps_out are the "diameters" of the inscribed and ciscunscript squares in the + /* #steps_in and #steps_out are the "diameters" of the inscribed and circumscribed squares in the * rectangle. Each step smaller than #steps_in does not need to check bounds. */ int steps_in, steps_out; { diff --git a/source/blender/compositor/intern/COM_NodeGraph.cc b/source/blender/compositor/intern/COM_NodeGraph.cc index 421a762d9b5..89b5a660dbd 100644 --- a/source/blender/compositor/intern/COM_NodeGraph.cc +++ b/source/blender/compositor/intern/COM_NodeGraph.cc @@ -103,7 +103,7 @@ void NodeGraph::add_bNodeTree(const CompositorContext &context, { const bNodeTree *basetree = context.getbNodeTree(); - /* update viewers in the active edittree as well the base tree (for backdrop) */ + /* Update viewers in the active edit-tree as well the base tree (for backdrop). */ bool is_active_group = (parent_key.value == basetree->active_viewer_key.value); /* add all nodes of the tree to the node list */ @@ -113,7 +113,7 @@ void NodeGraph::add_bNodeTree(const CompositorContext &context, } NodeRange node_range(m_nodes.begin() + nodes_start, m_nodes.end()); - /* add all nodelinks of the tree to the link list */ + /* Add all node-links of the tree to the link list. */ for (bNodeLink *nodelink = (bNodeLink *)tree->links.first; nodelink; nodelink = nodelink->next) { add_bNodeLink(node_range, nodelink); } diff --git a/source/blender/compositor/operations/COM_VectorBlurOperation.cc b/source/blender/compositor/operations/COM_VectorBlurOperation.cc index d6894dfc8ad..f03d702dc58 100644 --- a/source/blender/compositor/operations/COM_VectorBlurOperation.cc +++ b/source/blender/compositor/operations/COM_VectorBlurOperation.cc @@ -847,7 +847,7 @@ void zbuf_accumulate_vecblur(NodeBlurData *nbd, * overestimates the contribution of foreground pixels but looks a * bit better without a sudden cutoff. */ blendfac = ((samples - step) / (float)samples); - /* smoothstep to make it look a bit nicer as well */ + /* Smooth-step to make it look a bit nicer as well. */ blendfac = 3.0f * pow(blendfac, 2.0f) - 2.0f * pow(blendfac, 3.0f); /* accum */ diff --git a/source/blender/draw/engines/eevee/eevee_depth_of_field.c b/source/blender/draw/engines/eevee/eevee_depth_of_field.c index 5f8e0106337..7986d7a2810 100644 --- a/source/blender/draw/engines/eevee/eevee_depth_of_field.c +++ b/source/blender/draw/engines/eevee/eevee_depth_of_field.c @@ -834,7 +834,7 @@ static void dof_scatter_pass_init(EEVEE_FramebufferList *fbl, int input_size[2], target_size[2]; GPU_texture_get_mipmap_size(fx->dof_half_res_color_tx, 0, input_size); GPU_texture_get_mipmap_size(fx->dof_bg_color_tx, 0, target_size); - /* Draw a sprite for every four halfres pixels. */ + /* Draw a sprite for every four half-res pixels. */ int sprite_count = (input_size[0] / 2) * (input_size[1] / 2); float target_texel_size[2] = {1.0f / target_size[0], 1.0f / target_size[1]}; const bool use_bokeh_tx = (fx->dof_bokeh_gather_lut_tx != NULL); diff --git a/source/blender/draw/engines/eevee/eevee_effects.c b/source/blender/draw/engines/eevee/eevee_effects.c index 25aedd2cdde..d1d7c67d16c 100644 --- a/source/blender/draw/engines/eevee/eevee_effects.c +++ b/source/blender/draw/engines/eevee/eevee_effects.c @@ -157,7 +157,7 @@ void EEVEE_effects_init(EEVEE_ViewLayerData *sldata, sldata->common_data.ssr_pixelsize[1] = 2.0f / size_fs[1]; /** - * Color buffer with correct downsampling alignment. + * Color buffer with correct down-sampling alignment. * Used for SSReflections & SSRefractions. */ if ((effects->enabled_effects & EFFECT_RADIANCE_BUFFER) != 0) { diff --git a/source/blender/draw/engines/eevee/eevee_shadows.c b/source/blender/draw/engines/eevee/eevee_shadows.c index 1f27d2dce34..51fd1cad41e 100644 --- a/source/blender/draw/engines/eevee/eevee_shadows.c +++ b/source/blender/draw/engines/eevee/eevee_shadows.c @@ -174,7 +174,7 @@ void EEVEE_shadows_caster_register(EEVEE_ViewLayerData *sldata, Object *ob) } EEVEE_BoundBox *aabb = &frontbuffer->bbox[id]; - /* Note that *aabb has not been initialised yet. */ + /* Note that `*aabb` has not been initialized yet. */ add_v3_v3v3(aabb->center, min, max); mul_v3_fl(aabb->center, 0.5f); sub_v3_v3v3(aabb->halfdim, aabb->center, max); 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 { diff --git a/source/blender/nodes/geometry/nodes/node_geo_subdivide_smooth.cc b/source/blender/nodes/geometry/nodes/node_geo_subdivide_smooth.cc index 4d9b8110d65..b56100e21bf 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_subdivide_smooth.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_subdivide_smooth.cc @@ -69,7 +69,7 @@ static void geo_node_subdivide_smooth_exec(GeoNodeExecParams params) #else const int subdiv_level = clamp_i(params.extract_input("Level"), 0, 30); - /* Only process subdivion if level is greater than 0. */ + /* Only process subdivision if level is greater than 0. */ if (subdiv_level == 0) { params.set_output("Geometry", std::move(geometry_set)); return; -- cgit v1.2.3