From 279e20a9f28dbd8d2b0a34e965fec42712e9ec8e Mon Sep 17 00:00:00 2001 From: luz paz Date: Wed, 24 Sep 2025 15:37:57 +0200 Subject: [PATCH] Cleanup: Fix typos in source/blender/blenlib Fixes some user-facing and non-user-facing typos. Found via codespell. Pull Request: https://projects.blender.org/blender/blender/pulls/146111 --- source/blender/blenlib/BLI_math_matrix.hh | 2 +- source/blender/blenlib/BLI_subprocess.hh | 2 +- source/blender/blenlib/intern/offset_indices.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/blenlib/BLI_math_matrix.hh b/source/blender/blenlib/BLI_math_matrix.hh index 4e58c8d3cae..01b52196165 100644 --- a/source/blender/blenlib/BLI_math_matrix.hh +++ b/source/blender/blenlib/BLI_math_matrix.hh @@ -1808,7 +1808,7 @@ extern template float4x4 perspective( /** * Transform normal vectors, maintaining their unit length status, but implementing some - * optimizations for identity matrics and uniform scaling. + * optimizations for identity matrix and uniform scaling. */ void transform_normals(const float3x3 &transform, MutableSpan normals); void transform_normals(Span src, const float3x3 &transform, MutableSpan dst); diff --git a/source/blender/blenlib/BLI_subprocess.hh b/source/blender/blenlib/BLI_subprocess.hh index e276ab54f08..3c017a2f913 100644 --- a/source/blender/blenlib/BLI_subprocess.hh +++ b/source/blender/blenlib/BLI_subprocess.hh @@ -56,7 +56,7 @@ class BlenderSubprocess : NonCopyable { /** * Create a subprocess and pass the arguments to the main function. * NOTE: The subprocess path is not passed as `argv[0]`. - * `args` only support alpha-numeric characters, underscores and hyphen-minus as a safety + * `args` only support alphanumeric characters, underscores and hyphen-minus as a safety * measure. * WARNING: This function shouldn't be called again after it succeeds. */ diff --git a/source/blender/blenlib/intern/offset_indices.cc b/source/blender/blenlib/intern/offset_indices.cc index d9b96f927a4..31b57b99bbf 100644 --- a/source/blender/blenlib/intern/offset_indices.cc +++ b/source/blender/blenlib/intern/offset_indices.cc @@ -29,7 +29,7 @@ OffsetIndices accumulate_counts_to_offsets(MutableSpan counts_to_offse } counts_to_offsets.last() = offset; - BLI_assert_msg(offset == offset_i64, "Integer overflow occured"); + BLI_assert_msg(offset == offset_i64, "Integer overflow occurred"); UNUSED_VARS_NDEBUG(offset_i64); return OffsetIndices(counts_to_offsets);