Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-07-26 10:59:45 +0300
committerJeroen Bakker <jeroen@blender.org>2022-07-26 15:25:31 +0300
commit2775b6e9b6d9a47fc69aed38700078091ba470c2 (patch)
tree5462455035b1262bb674d99bdd9f916852ad43c3
parent98bf1d3e0adb86b4e172b6ab453af05f7e10e2d2 (diff)
Cleanup: Typo in comments: `data-lock` -> `data-block`.
-rw-r--r--source/blender/blenkernel/intern/gpencil.c2
-rw-r--r--source/blender/blenkernel/intern/layer.c4
-rw-r--r--source/blender/blenloader/intern/readfile.c14
3 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 3d546c5c36a..8a36cfe14c6 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -271,7 +271,7 @@ static void greasepencil_blend_read_lib(BlendLibReader *reader, ID *id)
{
bGPdata *gpd = (bGPdata *)id;
- /* Relink all data-lock linked by GP data-lock */
+ /* Relink all data-block linked by GP data-block. */
/* Layers */
LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd->layers) {
/* Layer -> Parent References */
diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c
index dabc76f29ca..0202fb3ff5e 100644
--- a/source/blender/blenkernel/intern/layer.c
+++ b/source/blender/blenkernel/intern/layer.c
@@ -2303,7 +2303,7 @@ static void direct_link_layer_collections(BlendDataReader *reader, ListBase *lb,
BLO_read_data_address(reader, &lc->scene_collection);
#endif
- /* Master collection is not a real data-lock. */
+ /* Master collection is not a real data-block. */
if (master) {
BLO_read_data_address(reader, &lc->collection);
}
@@ -2343,7 +2343,7 @@ static void lib_link_layer_collection(BlendLibReader *reader,
LayerCollection *layer_collection,
bool master)
{
- /* Master collection is not a real data-lock. */
+ /* Master collection is not a real data-block. */
if (!master) {
BLO_read_id_address(reader, lib, &layer_collection->collection);
}
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index f0d390677bb..1ed0f2d5dfe 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -517,7 +517,7 @@ void blo_split_main(ListBase *mainlist, Main *main)
while (i--) {
ID *id = lbarray[i]->first;
if (id == NULL || GS(id->name) == ID_LI) {
- /* No ID_LI data-lock should ever be linked anyway, but just in case, better be explicit. */
+ /* No ID_LI data-block should ever be linked anyway, but just in case, better be explicit. */
continue;
}
split_libdata(lbarray[i], lib_main_array, lib_main_array_len);
@@ -4175,7 +4175,7 @@ static void expand_doit_library(void *fdhandle, Main *mainvar, void *old)
}
if (bhead->code == ID_LINK_PLACEHOLDER) {
- /* Placeholder link to data-lock in another library. */
+ /* Placeholder link to data-block in another library. */
BHead *bheadlib = find_previous_lib(fd, bhead);
if (bheadlib == NULL) {
return;
@@ -4229,7 +4229,7 @@ static void expand_doit_library(void *fdhandle, Main *mainvar, void *old)
*/
oldnewmap_insert(fd->libmap, bhead->old, id, bhead->code);
- /* If "id" is a real data-lock and not a placeholder, we need to
+ /* If "id" is a real data-block and not a placeholder, we need to
* update fd->libmap to replace ID_LINK_PLACEHOLDER with the real
* ID_* code.
*
@@ -4890,11 +4890,11 @@ static void read_libraries(FileData *basefd, ListBase *mainlist)
}
}
- /* Read linked data-locks for each link placeholder, and replace
- * the placeholder with the real data-lock. */
+ /* Read linked data-blocks for each link placeholder, and replace
+ * the placeholder with the real data-block. */
read_library_linked_ids(basefd, fd, mainlist, mainptr);
- /* Test if linked data-locks need to read further linked data-locks
+ /* Test if linked data-blocks need to read further linked data-blocks
* and create link placeholders for them. */
BLO_expand_main(fd, mainptr);
}
@@ -4906,7 +4906,7 @@ static void read_libraries(FileData *basefd, ListBase *mainlist)
/* Drop weak links for which no data-block was found. */
read_library_clear_weak_links(basefd, mainlist, mainptr);
- /* Do versioning for newly added linked data-locks. If no data-locks
+ /* Do versioning for newly added linked data-blocks. If no data-blocks
* were read from a library versionfile will still be zero and we can
* skip it. */
if (mainptr->versionfile) {