diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-11-30 01:04:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-30 02:15:17 +0300 |
commit | 4e45265dc6cafe0bf6f36a14a469288183059858 (patch) | |
tree | 899ea04187908aafbcc590fd026b33d2d3b021c1 /source/blender/blenkernel/intern | |
parent | 262ef26ea3fe457ff077224662eaecc1b912aed1 (diff) |
Cleanup: spelling in comments & strings
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/blendfile_link_append.c | 24 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/lib_id.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 2 |
4 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/blenkernel/intern/blendfile_link_append.c b/source/blender/blenkernel/intern/blendfile_link_append.c index fb961dba482..17c44bbd5f5 100644 --- a/source/blender/blenkernel/intern/blendfile_link_append.c +++ b/source/blender/blenkernel/intern/blendfile_link_append.c @@ -18,8 +18,8 @@ * \ingroup bke * * High level `.blend` file link/append code, - * including linking/appending several IDs from different libraries, handling instanciations of - * collections/objects/obdata in current scene. + * including linking/appending several IDs from different libraries, handling instantiations of + * collections/objects/object-data in current scene. */ #include <stdlib.h> @@ -110,7 +110,7 @@ typedef struct BlendfileLinkAppendContext { LinkNodePair items; int num_libraries; int num_items; - /** Linking/appending parameters. Including bmain, scene, viewlayer and view3d. */ + /** Linking/appending parameters. Including `bmain`, `scene`, `viewlayer` and `view3d`. */ LibraryLink_Params *params; /** Allows to easily find an existing items from an ID pointer. */ @@ -245,7 +245,7 @@ void BKE_blendfile_link_append_context_embedded_blendfile_set( BlendfileLinkAppendContext *lapp_context, const void *blendfile_mem, int blendfile_memsize) { BLI_assert_msg(lapp_context->blendfile_mem == NULL, - "Please explicitely clear reference to an embedded blender memfile before " + "Please explicitly clear reference to an embedded blender memfile before " "setting a new one"); lapp_context->blendfile_mem = blendfile_mem; lapp_context->blendfile_memsize = (size_t)blendfile_memsize; @@ -530,7 +530,7 @@ static void loose_data_instantiate_object_base_instance_init(Main *bmain, } /* Tag obdata that actually need to be instantiated (those referenced by an object do not, since - * the object will be instantiated instaed if needed. */ + * the object will be instantiated instead if needed. */ static void loose_data_instantiate_obdata_preprocess( LooseDataInstantiateContext *instantiate_context) { @@ -854,7 +854,7 @@ static int foreach_libblock_link_append_callback(LibraryIDLinkCallbackData *cb_d * processed, so we need to recursively deal with them here. */ /* NOTE: Since we are by-passing checks in `BKE_library_foreach_ID_link` by manually calling it * recursively, we need to take care of potential recursion cases ourselves (e.g.animdata of - * shapekey referencing the shapekey itself). */ + * shape-key referencing the shape-key itself). */ if (id != cb_data->id_self) { BKE_library_foreach_ID_link( cb_data->bmain, id, foreach_libblock_link_append_callback, data, IDWALK_NOP); @@ -946,8 +946,8 @@ void BKE_blendfile_append(BlendfileLinkAppendContext *lapp_context, ReportList * /* Linked IDs should never be marked as needing post-processing (instantiation of loose * objects etc.). - * NOTE: This is dev test check, can be removed once we get rid of instantiation code in BLO - * completely.*/ + * NOTE: This is a developer test check, can be removed once we get rid of instantiation code + * in BLO completely.*/ BLI_assert((id->tag & LIB_TAG_DOIT) == 0); ID *existing_local_id = BKE_idtype_idcode_append_is_reusable(GS(id->name)) ? @@ -1206,8 +1206,8 @@ void BKE_blendfile_link(BlendfileLinkAppendContext *lapp_context, ReportList *re /* here appending/linking starts */ - /* NOTE: This is temporary hotfix until whole code using link/append features has been moved to - * use new BKE code. */ + /* NOTE: This is temporary hot-fix until whole code using link/append features has been moved + * to use new BKE code. */ /* Do not handle instantiation in linking process anymore, we do it here in * #loose_data_instantiate instead. */ lapp_context->params->flag &= ~BLO_LIBLINK_NEEDS_ID_TAG_DOIT; @@ -1271,8 +1271,8 @@ void BKE_blendfile_link(BlendfileLinkAppendContext *lapp_context, ReportList *re /* Linked IDs should never be marked as needing post-processing (instantiation of loose * objects etc.). - * NOTE: This is dev test check, can be removed once we get rid of instantiation code in BLO - * completely.*/ + * NOTE: This is developer test check, can be removed once we get rid of instantiation code + * in BLO completely.*/ BLI_assert((id->tag & LIB_TAG_DOIT) == 0); BlendfileLinkAppendContextCallBack cb_data = { diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 295157abe9a..6fe415aedab 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -264,7 +264,7 @@ static void image_foreach_path(ID *id, BPathForeachPathData *bpath_data) /* Skip empty file paths, these are typically from generated images and * don't make sense to add directories to until the image has been saved * once to give it a meaningful value. */ - /* TODO re-assess whether this behavior is disired in the new generic code context. */ + /* TODO re-assess whether this behavior is desired in the new generic code context. */ if (!ELEM(ima->source, IMA_SRC_FILE, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_SRC_TILED) || ima->filepath[0] == '\0') { return; diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index 58c909d0cd6..c53fed4ba4c 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -1854,7 +1854,7 @@ bool BKE_id_new_name_validate(ListBase *lb, ID *id, const char *tname, const boo return result; } -/* next to indirect usage in read/writefile also in editobject.c scene.c */ +/* Next to indirect usage in `readfile.c/writefile.c` also in `editobject.c`, `scene.c`. */ void BKE_main_id_newptr_and_tag_clear(Main *bmain) { ID *id; diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 31e1ca464fc..f2ac6b7fd22 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -902,7 +902,7 @@ static bool seq_foreach_path_callback(Sequence *seq, void *user_data) BKE_bpath_foreach_path_dirfile_fixed_process(bpath_data, seq->strip->dir, se->name); } else if ((seq->type == SEQ_TYPE_IMAGE) && se) { - /* NOTE: An option not to loop over all strips could be usefull? */ + /* NOTE: An option not to loop over all strips could be useful? */ unsigned int len = (unsigned int)MEM_allocN_len(se) / (unsigned int)sizeof(*se); unsigned int i; |