From c93f3b4596234491562cde4f22b37a34d59875cd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 May 2022 15:34:02 +1000 Subject: Cleanup: spelling in comments --- source/blender/blenkernel/intern/blendfile_link_append.c | 2 +- source/blender/editors/mesh/meshtools.cc | 4 ++-- source/blender/gpencil_modifiers/intern/lineart/lineart_chain.c | 6 +++--- source/blender/gpu/GPU_legacy_stubs.h | 2 +- source/blender/modifiers/intern/MOD_correctivesmooth.c | 4 ++-- source/blender/modifiers/intern/MOD_laplaciandeform.c | 4 ++-- source/blender/modifiers/intern/MOD_meshdeform.c | 4 ++-- source/blender/modifiers/intern/MOD_surfacedeform.c | 4 ++-- source/blender/python/generic/idprop_py_api.c | 5 ++--- source/blender/simulation/intern/SIM_mass_spring.cpp | 5 ++--- 10 files changed, 19 insertions(+), 21 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/blendfile_link_append.c b/source/blender/blenkernel/intern/blendfile_link_append.c index e99f71c1a60..45f031fca19 100644 --- a/source/blender/blenkernel/intern/blendfile_link_append.c +++ b/source/blender/blenkernel/intern/blendfile_link_append.c @@ -400,7 +400,7 @@ typedef struct LooseDataInstantiateContext { static bool object_in_any_scene(Main *bmain, Object *ob) { LISTBASE_FOREACH (Scene *, sce, &bmain->scenes) { - /* #BKE_scene_has_object checks bases cache of the scenes' viewlayer, not actual content of + /* #BKE_scene_has_object checks bases cache of the scenes' view-layer, not actual content of * their collections. */ if (BKE_collection_has_object_recursive(sce->master_collection, ob)) { return true; diff --git a/source/blender/editors/mesh/meshtools.cc b/source/blender/editors/mesh/meshtools.cc index 9057db8851c..b104820733b 100644 --- a/source/blender/editors/mesh/meshtools.cc +++ b/source/blender/editors/mesh/meshtools.cc @@ -1192,8 +1192,8 @@ bool ED_mesh_pick_face(bContext *C, Object *ob, const int mval[2], uint dist_px, ED_view3d_select_id_validate(&vc); if (dist_px) { - /* sample rect to increase chances of selecting, so that when clicking - * on an edge in the backbuf, we can still select a face */ + /* Sample rect to increase chances of selecting, so that when clicking + * on an edge in the back-buffer, we can still select a face. */ *r_index = DRW_select_buffer_find_nearest_to_point( vc.depsgraph, vc.region, vc.v3d, mval, 1, me->totpoly + 1, &dist_px); } diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_chain.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_chain.c index d7b370ef5e5..28fd8ff01b9 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_chain.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_chain.c @@ -1003,12 +1003,12 @@ void MOD_lineart_smooth_chains(LineartRenderBuffer *rb, float tolerance) len2 = len_v2(vec2); /* Because this smoothing applies on geometries of different scales in the same scene, * some small scale features (e.g. the "tails" on the inner ring of a torus geometry) - * could be completely erased if the tolerance value is set for accomondating the entire + * could be completely erased if the tolerance value is set for accommodating the entire * scene. Those situations typically result in (ratio << 0), looks like this: * 1---2 * 3-------------------------------4 - * (this sort of long zig zag obviously are "features" that can't be erased) - * setting a ratio of -10 turned out to be a reasonabe threshold in tests. */ + * (this sort of long zigzag obviously are "features" that can't be erased) + * setting a ratio of -10 turned out to be a reasonable threshold in tests. */ if (ratio < len2 && ratio > -len2 * 10) { /* We only remove p3 if p4 is on the extension of p1->p2. */ if ((eci4 = eci3->next) && diff --git a/source/blender/gpu/GPU_legacy_stubs.h b/source/blender/gpu/GPU_legacy_stubs.h index 369347447f8..5970738a9b3 100644 --- a/source/blender/gpu/GPU_legacy_stubs.h +++ b/source/blender/gpu/GPU_legacy_stubs.h @@ -23,7 +23,7 @@ #include "BLI_utildefines.h" /** - * Empty function, use for breakpoint when a deprecated + * Empty function, use for break-point when a deprecated * OpenGL function is called. */ static void gl_deprecated(void) diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c b/source/blender/modifiers/intern/MOD_correctivesmooth.c index 70ab6559b65..8b6c306dae8 100644 --- a/source/blender/modifiers/intern/MOD_correctivesmooth.c +++ b/source/blender/modifiers/intern/MOD_correctivesmooth.c @@ -806,8 +806,8 @@ static void blendWrite(BlendWriter *writer, const ID *id_owner, const ModifierDa BLI_assert(!ID_IS_LINKED(id_owner)); const bool is_local = (md->flag & eModifierFlag_OverrideLibrary_Local) != 0; if (!is_local) { - /* Modifier comming from linked data cannot be bound from an override, so we can remove all - * binding data, can save a sgnificant amout of memory. */ + /* Modifier coming from linked data cannot be bound from an override, so we can remove all + * binding data, can save a significant amount of memory. */ csmd.bind_coords_num = 0; csmd.bind_coords = NULL; } diff --git a/source/blender/modifiers/intern/MOD_laplaciandeform.c b/source/blender/modifiers/intern/MOD_laplaciandeform.c index e8dc07a257a..06ded1c4488 100644 --- a/source/blender/modifiers/intern/MOD_laplaciandeform.c +++ b/source/blender/modifiers/intern/MOD_laplaciandeform.c @@ -851,8 +851,8 @@ static void blendWrite(BlendWriter *writer, const ID *id_owner, const ModifierDa BLI_assert(!ID_IS_LINKED(id_owner)); const bool is_local = (md->flag & eModifierFlag_OverrideLibrary_Local) != 0; if (!is_local) { - /* Modifier comming from linked data cannot be bound from an override, so we can remove all - * binding data, can save a sgnificant amout of memory. */ + /* Modifier coming from linked data cannot be bound from an override, so we can remove all + * binding data, can save a significant amount of memory. */ lmd.verts_num = 0; lmd.vertexco = NULL; } diff --git a/source/blender/modifiers/intern/MOD_meshdeform.c b/source/blender/modifiers/intern/MOD_meshdeform.c index c5db0a5f21a..0cff85d30ec 100644 --- a/source/blender/modifiers/intern/MOD_meshdeform.c +++ b/source/blender/modifiers/intern/MOD_meshdeform.c @@ -589,8 +589,8 @@ static void blendWrite(BlendWriter *writer, const ID *id_owner, const ModifierDa BLI_assert(!ID_IS_LINKED(id_owner)); const bool is_local = (md->flag & eModifierFlag_OverrideLibrary_Local) != 0; if (!is_local) { - /* Modifier comming from linked data cannot be bound from an override, so we can remove all - * binding data, can save a sgnificant amout of memory. */ + /* Modifier coming from linked data cannot be bound from an override, so we can remove all + * binding data, can save a significant amount of memory. */ mmd.influences_num = 0; mmd.bindinfluences = NULL; mmd.verts_num = 0; diff --git a/source/blender/modifiers/intern/MOD_surfacedeform.c b/source/blender/modifiers/intern/MOD_surfacedeform.c index fe49244c4a2..9b0012e3890 100644 --- a/source/blender/modifiers/intern/MOD_surfacedeform.c +++ b/source/blender/modifiers/intern/MOD_surfacedeform.c @@ -1677,8 +1677,8 @@ static void blendWrite(BlendWriter *writer, const ID *id_owner, const ModifierDa BLI_assert(!ID_IS_LINKED(id_owner)); const bool is_local = (md->flag & eModifierFlag_OverrideLibrary_Local) != 0; if (!is_local) { - /* Modifier comming from linked data cannot be bound from an override, so we can remove all - * binding data, can save a sgnificant amout of memory. */ + /* Modifier coming from linked data cannot be bound from an override, so we can remove all + * binding data, can save a significant amount of memory. */ smd.bind_verts_num = 0; smd.verts = NULL; } diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index 2fbb6b8ee05..3f880da2f56 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -1279,9 +1279,8 @@ static PyObject *BPy_IDGroup_pop(BPy_IDProperty *self, PyObject *args) pyform = BPy_IDGroup_MapDataToPy(idprop); if (pyform == NULL) { - /* ok something bad happened with the #PyObject, - * so don't remove the prop from the group. if `pyform is - * NULL, then it already should have raised an exception. */ + /* Ok something bad happened with the #PyObject, so don't remove the prop from the group. + * if `pyform` is NULL, then it already should have raised an exception. */ return NULL; } diff --git a/source/blender/simulation/intern/SIM_mass_spring.cpp b/source/blender/simulation/intern/SIM_mass_spring.cpp index 46597f80d75..f5a6427a6a4 100644 --- a/source/blender/simulation/intern/SIM_mass_spring.cpp +++ b/source/blender/simulation/intern/SIM_mass_spring.cpp @@ -268,9 +268,8 @@ static void cloth_setup_constraints(ClothModifierData *clmd) /** * Computes where the cloth would be if it were subject to perfectly stiff edges - * (edge distance constraints) in a lagrangian solver. then add forces to help - * guide the implicit solver to that state. this function is called after - * collisions. + * (edge distance constraints) in a lagrangian solver. Then add forces to help + * guide the implicit solver to that state. This function is called after collisions. */ static int UNUSED_FUNCTION(cloth_calc_helper_forces)(Object *UNUSED(ob), ClothModifierData *clmd, -- cgit v1.2.3