[Bf-blender-cvs] [02226e90692] master: Cleanup: spelling in comments
Campbell Barton
noreply at git.blender.org
Mon Jan 9 07:41:55 CET 2023
Commit: 02226e90692831637d511f666ca93f2ef57d7ab7
Author: Campbell Barton
Date: Mon Jan 9 17:39:35 2023 +1100
Branches: master
https://developer.blender.org/rB02226e90692831637d511f666ca93f2ef57d7ab7
Cleanup: spelling in comments
===================================================================
M source/blender/blenlib/BLI_devirtualize_parameters.hh
M source/blender/blenlib/BLI_math_rotation_types.hh
M source/blender/editors/screen/screen_ops.c
M source/blender/functions/FN_multi_function_builder.hh
M source/blender/gpu/intern/gpu_texture_private.hh
M source/blender/makesrna/RNA_access.h
M source/blender/makesrna/intern/rna_access_compare_override.c
===================================================================
diff --git a/source/blender/blenlib/BLI_devirtualize_parameters.hh b/source/blender/blenlib/BLI_devirtualize_parameters.hh
index 2086c81b30d..5a10e944a9d 100644
--- a/source/blender/blenlib/BLI_devirtualize_parameters.hh
+++ b/source/blender/blenlib/BLI_devirtualize_parameters.hh
@@ -51,7 +51,7 @@ inline bool call_with_devirtualized_parameters(const std::tuple<Devirtualizers..
const Fn &fn)
{
/* In theory the code below could be generalized to avoid code duplication. However, the maximum
- * number of parameters is expected to be relatively low. Explicitely implementing the different
+ * number of parameters is expected to be relatively low. Explicitly implementing the different
* cases makes it more obvious to see what is going on and also makes inlining everything easier
* for the compiler. */
constexpr size_t DeviNum = sizeof...(Devirtualizers);
diff --git a/source/blender/blenlib/BLI_math_rotation_types.hh b/source/blender/blenlib/BLI_math_rotation_types.hh
index f269aa79537..f3b465f4ad2 100644
--- a/source/blender/blenlib/BLI_math_rotation_types.hh
+++ b/source/blender/blenlib/BLI_math_rotation_types.hh
@@ -16,8 +16,8 @@ namespace detail {
/**
* Rotation Types
*
- * It gives more semantic informations allowing overloaded functions based on the rotation
- * type. It also prevent implicit cast from rotation to vector types.
+ * It gives more semantic information allowing overloaded functions based on the rotation type.
+ * It also prevent implicit cast from rotation to vector types.
*/
/* Forward declaration. */
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index dd0271f3155..bd6d6d27d7c 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -2951,8 +2951,8 @@ static int frame_offset_exec(bContext *C, wmOperator *op)
int delta = RNA_int_get(op->ptr, "delta");
- /* In order to jump from e.g. 1.5 to 1 the delta needs to be incremented by 1 since the subframe
- * is always zeroed. Otherwise it would jump to 0.*/
+ /* In order to jump from e.g. 1.5 to 1 the delta needs to be incremented by 1 since the sub-frame
+ * is always zeroed. Otherwise it would jump to 0. */
if (delta < 0 && scene->r.subframe > 0) {
delta += 1;
}
diff --git a/source/blender/functions/FN_multi_function_builder.hh b/source/blender/functions/FN_multi_function_builder.hh
index bfe88e01f04..bb366ea47ea 100644
--- a/source/blender/functions/FN_multi_function_builder.hh
+++ b/source/blender/functions/FN_multi_function_builder.hh
@@ -139,7 +139,7 @@ execute_array(TypeSequence<ParamTags...> /*param_tags*/,
Args &&__restrict... args)
{
if constexpr (std::is_same_v<std::decay_t<MaskT>, IndexRange>) {
- /* Having this explicit loop is necessary for msvc to be able to vectorize this. */
+ /* Having this explicit loop is necessary for MSVC to be able to vectorize this. */
const int64_t start = mask.start();
const int64_t end = mask.one_after_last();
for (int64_t i = start; i < end; i++) {
diff --git a/source/blender/gpu/intern/gpu_texture_private.hh b/source/blender/gpu/intern/gpu_texture_private.hh
index 554c1e03d77..344ec911adc 100644
--- a/source/blender/gpu/intern/gpu_texture_private.hh
+++ b/source/blender/gpu/intern/gpu_texture_private.hh
@@ -44,7 +44,7 @@ typedef enum eGPUTextureType {
ENUM_OPERATORS(eGPUTextureType, GPU_TEXTURE_CUBE_ARRAY)
/* Format types for samplers within the shader.
- * This covers the sampler format type permutations within GLSL/MSL.*/
+ * This covers the sampler format type permutations within GLSL/MSL. */
typedef enum eGPUSamplerFormat {
GPU_SAMPLER_TYPE_FLOAT = 0,
GPU_SAMPLER_TYPE_INT = 1,
@@ -478,7 +478,7 @@ inline size_t to_bytesize(eGPUDataFormat data_format)
inline size_t to_bytesize(eGPUTextureFormat tex_format, eGPUDataFormat data_format)
{
/* Special case for compacted types.
- * Standard component len calcualtion does not apply, as the texture formats contain multiple
+ * Standard component len calculation does not apply, as the texture formats contain multiple
* channels, but associated data format contains several compacted components. */
if ((tex_format == GPU_R11F_G11F_B10F && data_format == GPU_DATA_10_11_11_REV) ||
(tex_format == GPU_RGB10_A2 && data_format == GPU_DATA_2_10_10_10_REV)) {
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h
index 656b0bc93b2..14d7c6691f6 100644
--- a/source/blender/makesrna/RNA_access.h
+++ b/source/blender/makesrna/RNA_access.h
@@ -813,7 +813,7 @@ typedef enum eRNAOverrideMatchResult {
*/
RNA_OVERRIDE_MATCH_RESULT_CREATED = 1 << 0,
/**
- * Some properties are illegaly different from their reference values and have been tagged for
+ * Some properties are illegally different from their reference values and have been tagged for
* restoration.
*/
RNA_OVERRIDE_MATCH_RESULT_RESTORE_TAGGED = 1 << 1,
diff --git a/source/blender/makesrna/intern/rna_access_compare_override.c b/source/blender/makesrna/intern/rna_access_compare_override.c
index 5e6579c7fa1..a0a084869d8 100644
--- a/source/blender/makesrna/intern/rna_access_compare_override.c
+++ b/source/blender/makesrna/intern/rna_access_compare_override.c
@@ -821,7 +821,7 @@ bool RNA_struct_override_matches(Main *bmain,
/* This property should be restored to its reference value. This should not be done
* here, since this code may be called from non-main thread (modifying data through RNA
* is not thread safe). */
- BLI_assert(op == NULL); /* Forbidden orverride prop should not exist currently. */
+ BLI_assert(op == NULL); /* Forbidden override prop should not exist currently. */
if (do_restore) {
IDOverrideLibraryPropertyOperation opop_tmp = {
More information about the Bf-blender-cvs
mailing list