Cleanup: typos in code comments

This commit is contained in:
Campbell Barton
2025-07-31 06:17:48 +00:00
parent cd5dd61527
commit f3e4b45115
11 changed files with 13 additions and 13 deletions

View File

@@ -157,7 +157,7 @@ class AnimDataConvertor {
* Source (old) RNA property path in source ID to destination (new) matching property RNA path in
* destination ID.
*
* \note All paths here are relative the their respective (source or destination) root path.
* \note All paths here are relative to their respective (source or destination) root path.
* \note If this array is empty, all FCurves starting with `root_path_source` will be "rebased"
* on `root_path_dst`.
*/

View File

@@ -58,7 +58,7 @@ inline void bits_to_index_ranges(const BitSpan bits, IndexRangesBuilder<IntT> &b
const int64_t bit_i_to_output_offset = start - start_bit;
/* Iterate over ranges of 1s. For example, if the bits are 0b000111110001111000, the loop
* below requires two iterations. The worst case for this is when the there are very many small
* below requires two iterations. The worst case for this is when there are very many small
* ranges of 1s (e.g. 0b10101010101). So far it seems like the overhead of detecting such
* cases is higher than the potential benefit of using another algorithm. */
BitInt current_value = masked_value;

View File

@@ -8,7 +8,7 @@
* \ingroup bli
*
* Shared logic for #BLI_task_parallel_mempool to create a threaded iterator,
* without exposing the these functions publicly.
* without exposing these functions publicly.
*/
#include "BLI_compiler_attrs.h"

View File

@@ -396,8 +396,8 @@ TEST(convexhull_2d, OctagonNearDuplicates)
p *= scale;
}
/* NOTE: `ROTATION_EPS` epsilon fails on MacOS,
* use a slightly larger epsilon to tests pass on all systems. */
/* NOTE: #ROTATION_EPS epsilon fails on MacOS,
* use a slightly larger epsilon so tests pass on all systems. */
const float abs_error = scale < 10.0f ? ROTATION_EPS : 1e-5f;
EXPECT_NEAR(convexhull_aabb_canonical_angle(BLI_convexhull_aabb_fit_points_2d(points_copy)),
DEG2RADF(51.5453016381),

View File

@@ -965,7 +965,7 @@ static int *read_file_thumbnail(FileData *fd)
}
/**
* ID names are truncated the their maximum allowed length at a very low level of the readfile code
* ID names are truncated to their maximum allowed length at a very low level of the readfile code
* (see #read_id_struct).
*
* However, ensuring they remain unique can only be done once all IDs have been read and put in

View File

@@ -1693,7 +1693,7 @@ static void version_geometry_nodes_set_position_node_offset(bNodeTree *ntree)
/* Versioning happened already. */
return;
}
/* Change identifier of old socket, so that the there is no name collision. */
/* Change identifier of old socket, so that there is no name collision. */
STRNCPY_UTF8(old_offset_socket->identifier, "Offset_old");
blender::bke::node_add_static_socket(
*ntree, *node, SOCK_IN, SOCK_VECTOR, PROP_TRANSLATION, "Offset", "Offset");

View File

@@ -503,7 +503,7 @@ void bmo_split_exec(BMesh *bm, BMOperator *op)
/* NOTE: `boundary_map.out` can't use #BMO_slot_copy because some of the "source"
* geometry has been removed. In this case the (source -> destination) map doesn't work.
* In this case there is isn't an especially good option.
* In this case there isn't an especially good option.
* The geometry needs to be included so the boundary is accessible.
* Use the "destination" as the key and the value since it avoids adding freed
* geometry into the map and can be easily detected by other operators.

View File

@@ -154,7 +154,7 @@ struct Profile {
float *prof_co;
/** Like prof_co, but for seg power of 2 >= seg. */
float *prof_co_2;
/** Mark a special case so the these parameters aren't reset with others. */
/** Mark a special case so these parameters aren't reset with others. */
bool special_params;
};
#define PRO_SQUARE_R 1e4f

View File

@@ -243,8 +243,8 @@ static int txtfmt_py_find_numeral_inner(const char *string)
const char first = *string, second = *(string + 1);
/* Decimal dot must be followed by a digit, any decimal digit.
* Note that the there can be any number of leading zeros after
* the decimal point (leading zeros are not allowed in integers) */
* Note that there can be any number of leading zeros after the decimal point
* (leading zeros are not allowed in integers). */
if (first == '.') {
if (text_check_digit(second)) {
return 1 + txtfmt_py_numeral_string_count_decimal(string + 1);

View File

@@ -54,7 +54,7 @@ static void gaussian_blur_1D(const Span<T> src,
BLI_assert(!src.is_empty());
BLI_assert(src.size() == dst.size());
/* Avoid computation if the there is just one point. */
/* Avoid computation if there is just one point. */
if (src.size() == 1) {
return;
}

View File

@@ -1321,7 +1321,7 @@ void RE_engine_tile_highlight_clear_all(RenderEngine *engine)
bool RE_engine_gpu_context_create(RenderEngine *engine)
{
/* If the there already is a draw manager render context available, reuse it. */
/* If there already is a draw manager render context available, reuse it. */
engine->use_drw_render_context = (engine->re && RE_system_gpu_context_get(engine->re));
if (engine->use_drw_render_context) {
return true;