Fix typos in source/blender/blenkernel

Fixes various user-facing and non-user-facing typos.

Pull Request: https://projects.blender.org/blender/blender/pulls/145767
This commit is contained in:
luz paz
2025-09-05 16:25:32 +02:00
committed by Hans Goudey
parent cfd5cddc41
commit 0760b2d5aa
14 changed files with 18 additions and 18 deletions

View File

@@ -199,8 +199,8 @@ std::optional<blender::Bounds<blender::float3>> BKE_pose_minmax(const Object *ob
* (For renaming, check for unique names afterwards)
* \param strip_number: removes number extensions (TODO: not used).
* \param axis: The axis to name on.
* \param head: The head co-ordinate of the bone on the specified axis.
* \param tail: The tail co-ordinate of the bone on the specified axis.
* \param head: The head coordinate of the bone on the specified axis.
* \param tail: The tail coordinate of the bone on the specified axis.
*/
bool bone_autoside_name(char name[64], int strip_number, short axis, float head, float tail);
@@ -302,7 +302,7 @@ void mat3_to_vec_roll(const float mat[3][3], float r_vec[3], float *r_roll);
*/
void mat3_vec_to_roll(const float mat[3][3], const float vec[3], float *r_roll);
/* Common Conversions Between Co-ordinate Spaces */
/* Common Conversions Between Coordinate Spaces */
/**
* Convert World-Space Matrix to Pose-Space Matrix.

View File

@@ -152,7 +152,7 @@ struct Main : blender::NonCopyable, blender::NonMovable {
/**
* Runtime vector storing all split Mains (one Main for each library data), during readfile or
* linking process.
* Shared accross all of the split mains when defined.
* Shared across all of the split mains when defined.
*/
std::shared_ptr<blender::VectorSet<Main *>> split_mains = {};
/**

View File

@@ -93,10 +93,10 @@ class SocketValueVariant {
/**
* Create a variant based on the given value. This works for primitive types. For more complex
* types use #set explicity. Alternatively, one can use the #From or #ConstructIn utilities.
* types use #set explicitly. Alternatively, one can use the #From or #ConstructIn utilities.
*/
template<typename T,
/* The enable-if is necessary to avoid overridding the copy/moveconstructors. */
/* The enable-if is necessary to avoid overriding the copy/moveconstructors. */
BLI_ENABLE_IF((std::is_trivial_v<std::decay_t<T>> ||
is_same_any_v<std::decay_t<T>, std::string>))>
explicit SocketValueVariant(T &&value)

View File

@@ -1153,7 +1153,7 @@ void fill_attribute_range_default(MutableAttributeAccessor attributes,
const IndexRange range)
{
/* While it is valid to call this function for any valid range which can be placed in target
* domain, it is computationally costly to peform this loop. This check is COW elision and not
* domain, it is computationally costly to perform this loop. This check is COW elision and not
* just loop skip. */
if (range.is_empty()) {
return;

View File

@@ -930,7 +930,7 @@ static bool foreach_libblock_link_append_common_processing(
/* While we do not want to add non-linkable ID (shape keys...) to the list of linked items,
* unfortunately they can use fully linkable valid IDs too, like actions. Those need to be
* 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
/* NOTE: Since we are bypassing checks in `BKE_library_foreach_ID_link` by manually calling it
* recursively, we need to take care of potential recursion cases ourselves (e.g.anim-data of
* shape-key referencing the shape-key itself). */
/* NOTE: in case both IDs (owner and 'used' ones) are non-linkable, we can assume we can break

View File

@@ -769,7 +769,7 @@ Collection *BKE_collection_duplicate(Main *bmain,
/* Unfortunate, but with some types (e.g. meshes), an object is considered in Edit mode if its
* obdata contains edit mode runtime data. This can be the case of all newly duplicated
* objects, as even though duplicate code move the object back in Object mode, they are still
* using the original obdata ID, leading to them being falsly detected as being in Edit mode,
* using the original obdata ID, leading to them being falsely detected as being in Edit mode,
* and therefore not remapping their obdata to the newly duplicated one.
* See #139715. */
BKE_libblock_relink_to_newid(

View File

@@ -250,7 +250,7 @@ void calculate_basis_cache(const int points_num,
/* Find the 'span index' for each breakpoint that defines the 'evaluated spans'.
* An evaluated span (or 'segment') in this context is the parameter interval
* between two consecutive knots [i, i + 1], where the knot at index `i` is a
* breakpoint and is stricly less than the value of following knot. For repeated
* breakpoint and is strictly less than the value of following knot. For repeated
* knots, with multiplicity > 1, only the rightmost is considered a breakpoint
* as the spans between repeated knot values are zero length!
*/

View File

@@ -938,7 +938,7 @@ int BKE_image_find_nearest_tile_with_offset(const Image *image,
const float co[2],
float r_uv_offset[2])
{
/* NOTE: If the co-ordinates are integers, take special care to break ties. */
/* NOTE: If the coordinates are integers, take special care to break ties. */
zero_v2(r_uv_offset);
int tile_number_best = -1;

View File

@@ -468,7 +468,7 @@ static Array<int> generate_unique_instance_ids(Span<int> original_ids)
break;
}
if (iteration == max_iteration) {
/* The likelyhood of running into this case is very low even if there is a huge number of
/* The likelihood of running into this case is very low even if there is a huge number of
* instances. For correctness, it's still good to systematically find an unused id instead
* of purely relying on randomness. */
for (const int generated_id : IndexRange(INT32_MAX)) {

View File

@@ -278,7 +278,7 @@ static size_t id_delete(Main *bmain,
* of other deleted IDs.
* This gives tremendous speed-up when deleting a large amount of IDs from a Main
* containing thousands of these.
* This also means that we have to be very careful here, as we by-pass many 'common'
* This also means that we have to be very careful here, as we bypass many 'common'
* processing, hence risking to 'corrupt' at least user counts, if not IDs themselves. */
bool keep_looping = true;
while (keep_looping) {

View File

@@ -2670,7 +2670,7 @@ Object *BKE_object_duplicate(Main *bmain,
/* Unfortunate, but with some types (e.g. meshes), an object is considered in Edit mode if its
* obdata contains edit mode runtime data. This can be the case of all newly duplicated
* objects, as even though duplicate code move the object back in Object mode, they are still
* using the original obdata ID, leading to them being falsly detected as being in Edit mode,
* using the original obdata ID, leading to them being falsely detected as being in Edit mode,
* and therefore not remapping their obdata to the newly duplicated one.
* See #139715. */
BKE_libblock_relink_to_newid(

View File

@@ -2442,7 +2442,7 @@ static float nr_distance_to_vert(float *p,
return len_v3v3(p, pce->x0) - radius;
}
/**
* \param t: is the current time for newton rhapson.
* \param t: is the current time for newton raphson.
* \param fac: is the starting factor for current collision iteration.
* \param col: The particle collision, `col->fac's` are factors for the
* particle sub-frame step start and end during collision modifier step.

View File

@@ -698,7 +698,7 @@ static void scene_foreach_toolsettings(LibraryForeachIDData *data,
toolsett->sculpt->gravity_object = gravity_object;
}
/* Do not re-assign `gravity_object_old` object if both current and old data are the same
* (foreach_id case), that would nullify assignement above, making remapping cases fail. */
* (foreach_id case), that would nullify assignment above, making remapping cases fail. */
if (toolsett_old != toolsett) {
toolsett_old->sculpt->gravity_object = gravity_object_old;
}
@@ -1892,7 +1892,7 @@ Scene *BKE_scene_duplicate(Main *bmain, Scene *sce, eSceneCopyMethod type)
/* Unfortunate, but with some types (e.g. meshes), an object is considered in Edit mode if
* its obdata contains edit mode runtime data. This can be the case of all newly duplicated
* objects, as even though duplicate code move the object back in Object mode, they are still
* using the original obdata ID, leading to them being falsly detected as being in Edit mode,
* using the original obdata ID, leading to them being falsely detected as being in Edit mode,
* and therefore not remapping their obdata to the newly duplicated one.
* See #139715. */
BKE_libblock_relink_to_newid(

View File

@@ -1957,7 +1957,7 @@ static const char *unit_find_str(const char *str, const char *substr, bool case_
* since non ASCII UTF8 values will NEVER return true. */
isalpha_or_utf8(*BLI_str_find_prev_char_utf8(str_found, str)) == 0)
{
/* Next char cannot be alpha-numeric. */
/* Next char cannot be alphanumeric. */
int len_name = strlen(substr);
if (!isalpha_or_utf8(*(str_found + len_name))) {