From 02226e90692831637d511f666ca93f2ef57d7ab7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 9 Jan 2023 17:39:35 +1100 Subject: [PATCH] Cleanup: spelling in comments --- source/blender/blenlib/BLI_devirtualize_parameters.hh | 2 +- source/blender/blenlib/BLI_math_rotation_types.hh | 4 ++-- source/blender/editors/screen/screen_ops.c | 4 ++-- source/blender/functions/FN_multi_function_builder.hh | 2 +- source/blender/gpu/intern/gpu_texture_private.hh | 4 ++-- source/blender/makesrna/RNA_access.h | 2 +- source/blender/makesrna/intern/rna_access_compare_override.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) 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::tupleptr, "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 /*param_tags*/, Args &&__restrict... args) { if constexpr (std::is_same_v, 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 = {