forked from bartvdbraak/blender
Cleanup: spelling
This commit is contained in:
parent
bc58425862
commit
92826a921c
@ -51,7 +51,7 @@ std::string BKE_cryptomatte_meta_data_key(const StringRef layer_name,
|
||||
* A render_pass_name could be 'View Layer.CryptoMaterial02'. The cryptomatte layer would be 'View
|
||||
* Layer.CryptoMaterial'.
|
||||
*
|
||||
* NOTE: The return type is a substring of `render_pass_name` and therefore cannot outlive the
|
||||
* NOTE: The return type is a sub-string of `render_pass_name` and therefore cannot outlive the
|
||||
* `render_pass_name` internal data.
|
||||
*/
|
||||
StringRef BKE_cryptomatte_extract_layer_name(const StringRef render_pass_name);
|
||||
|
@ -296,8 +296,8 @@ NlaTrack *BKE_nlatrack_add(AnimData *adt, NlaTrack *prev, const bool is_liboverr
|
||||
nlt->flag = NLATRACK_SELECTED | NLATRACK_OVERRIDELIBRARY_LOCAL;
|
||||
nlt->index = BLI_listbase_count(&adt->nla_tracks);
|
||||
|
||||
/* In liboverride case, we only add local tracks after all those comming from the linked data, so
|
||||
* we need to find the first local track. */
|
||||
/* In liboverride case, we only add local tracks after all those coming from the linked data,
|
||||
* so we need to find the first local track. */
|
||||
if (is_liboverride && prev != NULL && (prev->flag & NLATRACK_OVERRIDELIBRARY_LOCAL) == 0) {
|
||||
NlaTrack *first_local = prev->next;
|
||||
for (; first_local != NULL && (first_local->flag & NLATRACK_OVERRIDELIBRARY_LOCAL) == 0;
|
||||
|
@ -60,7 +60,7 @@ static int bm_edge_face(BMEdge *e)
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the next available edge we can use to attempt tp calculate a path from.
|
||||
* Get the next available edge we can use to attempt to calculate a path from.
|
||||
*/
|
||||
static BMEdge *bm_edgenet_edge_get_next(BMesh *bm,
|
||||
LinkNode **edge_queue,
|
||||
|
@ -165,9 +165,10 @@ void OVERLAY_edit_uv_init(OVERLAY_Data *vedata)
|
||||
pd->edit_uv.total_area_ratio = 0.0f;
|
||||
pd->edit_uv.total_area_ratio_inv = 0.0f;
|
||||
|
||||
/* During engine init phase the sima isn't locked and we are able to retrieve the needed data.
|
||||
* During cache_init the image engine locks the sima and makes it imposible to retrieve the data.
|
||||
*/
|
||||
/* During engine initialization phase the `sima` isn't locked and
|
||||
* we are able to retrieve the needed data.
|
||||
* During cache_init the image engine locks the `sima` and makes it impossible
|
||||
* to retrieve the data. */
|
||||
ED_space_image_get_uv_aspect(sima, &pd->edit_uv.uv_aspect[0], &pd->edit_uv.uv_aspect[1]);
|
||||
ED_space_image_get_size(sima, &pd->edit_uv.image_size[0], &pd->edit_uv.image_size[1]);
|
||||
ED_space_image_get_aspect(sima, &pd->edit_uv.image_aspect[0], &pd->edit_uv.image_aspect[1]);
|
||||
|
@ -1931,7 +1931,7 @@ static int move_to_collection_invoke(bContext *C, wmOperator *op, const wmEvent
|
||||
Collection *master_collection = scene->master_collection;
|
||||
|
||||
/* We need the data to be allocated so it's available during menu drawing.
|
||||
* Technically we could use wmOperator->customdata. However there is no free callback
|
||||
* Technically we could use #wmOperator.customdata. However there is no free callback
|
||||
* called to an operator that exit with OPERATOR_INTERFACE to launch a menu.
|
||||
*
|
||||
* So we are left with a memory that will necessarily leak. It's a small leak though.*/
|
||||
|
@ -3238,8 +3238,8 @@ static void node_geometry_buts_attribute_vector_math(uiLayout *layout,
|
||||
uiItemR(layout, ptr, "operation", DEFAULT_FLAGS, "", ICON_NONE);
|
||||
uiItemR(layout, ptr, "input_type_a", DEFAULT_FLAGS, IFACE_("Type A"), ICON_NONE);
|
||||
|
||||
/* These "use input b / c" checks are copied from the node's code. They could be deduplicated if
|
||||
* the drawing code was moved to the node's file. */
|
||||
/* These "use input b / c" checks are copied from the node's code.
|
||||
* They could be de-duplicated if the drawing code was moved to the node's file. */
|
||||
if (!ELEM(node_storage->operation,
|
||||
NODE_VECTOR_MATH_NORMALIZE,
|
||||
NODE_VECTOR_MATH_FLOOR,
|
||||
|
@ -622,7 +622,7 @@ static bool seq_disk_cache_write_file(SeqDiskCache *disk_cache, SeqCacheKey *key
|
||||
DiskCacheFile *cache_file = seq_disk_cache_get_file_entry_by_path(disk_cache, path);
|
||||
DiskCacheHeader header;
|
||||
memset(&header, 0, sizeof(header));
|
||||
/* BLI_make_existing_file() above may create an empty file. This is fine, don't atttempt reading
|
||||
/* #BLI_make_existing_file() above may create an empty file. This is fine, don't attempt reading
|
||||
* the header in that case. */
|
||||
if (cache_file->fstat.st_size != 0 && !seq_disk_cache_read_header(file, &header)) {
|
||||
fclose(file);
|
||||
|
Loading…
Reference in New Issue
Block a user