From 1198b187b5fe3d54c2efce4f0e162d878d32b8d9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 11 Apr 2021 13:09:27 +1000 Subject: Cleanup: spelling --- source/blender/blenkernel/intern/anim_path.c | 4 ++-- source/blender/blenkernel/intern/lib_override.c | 2 +- source/blender/editors/space_file/filelist.c | 3 +-- source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh | 2 +- source/blender/editors/space_view3d/drawobject.c | 2 +- source/blender/freestyle/intern/stroke/ChainingIterators.h | 2 +- source/blender/makesrna/intern/rna_space.c | 2 +- 7 files changed, 8 insertions(+), 9 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/anim_path.c b/source/blender/blenkernel/intern/anim_path.c index 78884ed907e..af2b386a30a 100644 --- a/source/blender/blenkernel/intern/anim_path.c +++ b/source/blender/blenkernel/intern/anim_path.c @@ -150,7 +150,7 @@ static void get_curve_points_from_idx(const int idx, /* Last segment (or next to last in a cyclic curve). */ if (idx == bl->nr - 2) { - /* The case when the bl->nr == 2 falls in to the "first segement" check above. + /* The case when the bl->nr == 2 falls in to the "first segment" check above. * So here we can assume that bl->nr > 2. */ *r_p0 = &bp_arr[idx - 1]; @@ -207,7 +207,7 @@ static bool binary_search_anim_path(const float *accum_len_arr, return true; } if (cur_idx == 0) { - /* We ended up at the first segement. The point must be in here. */ + /* We ended up at the first segment. The point must be in here. */ *r_idx = 0; *r_frac = goal_len / accum_len_arr[0]; return true; diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c index 7412f6a5a0c..40b7681614d 100644 --- a/source/blender/blenkernel/intern/lib_override.c +++ b/source/blender/blenkernel/intern/lib_override.c @@ -197,7 +197,7 @@ void BKE_lib_override_library_free(struct IDOverrideLibrary **override, const bo static ID *lib_override_library_create_from(Main *bmain, ID *reference_id) { /* Note: We do not want to copy possible override data from reference here (whether it is an - * override template, or aleady an override of some other ref data). */ + * override template, or already an override of some other ref data). */ ID *local_id = BKE_id_copy_ex( bmain, reference_id, NULL, LIB_ID_COPY_DEFAULT | LIB_ID_COPY_NO_LIB_OVERRIDE); diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 4c9f80bfa64..c2b3a7ac0ee 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -3017,8 +3017,7 @@ static void filelist_readjob_main_recursive(Main *bmain, FileList *filelist) } } - /* XXX TODO: if databrowse F4 or append/link - * filelist->flags & FLF_HIDE_PARENT has to be set */ + /* XXX TODO: if data-browse or append/link #FLF_HIDE_PARENT has to be set. */ if (!(filelist->filter_data.flags & FLF_HIDE_PARENT)) { filelist->filelist.nbr_entries++; } diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh b/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh index e012fae0edf..de47109a144 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh +++ b/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh @@ -25,7 +25,7 @@ namespace blender::ed::spreadsheet { /** * This class is subclassed to implement different data sources for the spreadsheet. A data source - * provides the information that should be displayed. It is not concerned with how data is layed + * provides the information that should be displayed. It is not concerned with how data is laid * out in the spreadsheet editor exactly. */ class DataSource { diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 6969ecf197e..660ae9da506 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -128,7 +128,7 @@ void ED_draw_object_facemap(Depsgraph *depsgraph, GPU_front_facing(ob->transflag & OB_NEG_SCALE); - /* Just to create the data to pass to immediate mode, grr! */ + /* Just to create the data to pass to immediate mode! (sigh) */ const int *facemap_data = CustomData_get_layer(&me->pdata, CD_FACEMAP); if (facemap_data) { GPU_blend(GPU_BLEND_ALPHA); diff --git a/source/blender/freestyle/intern/stroke/ChainingIterators.h b/source/blender/freestyle/intern/stroke/ChainingIterators.h index e3d49c167b5..0a9e7114ecb 100644 --- a/source/blender/freestyle/intern/stroke/ChainingIterators.h +++ b/source/blender/freestyle/intern/stroke/ChainingIterators.h @@ -164,7 +164,7 @@ class ChainingIterator : public ViewEdgeInternal::ViewEdgeIterator { * Indicates whether to force the chaining to stay within * the set of selected ViewEdges or not. * \param iRestrictToUnvisited: - * Indicates whether a ViewEdge that has already been chained must be ignored ot not. + * Indicates whether a ViewEdge that has already been chained must be ignored or not. * \param begin: * The ViewEdge from which to start the chain. * \param orientation: diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 3590b93620c..aac9fd2d59e 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -1673,7 +1673,7 @@ static void rna_SpaceImageEditor_zoom_get(PointerRNA *ptr, float *values) values[0] = values[1] = 1; - /* find aregion */ + /* Find #ARegion. */ area = rna_area_from_space(ptr); /* can be NULL */ region = BKE_area_find_region_type(area, RGN_TYPE_WINDOW); if (region) { -- cgit v1.2.3