From d4aedd89d04d33f35a19d7827c4103accab9e059 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 22 Feb 2024 22:38:55 +1100 Subject: [PATCH] Cleanup: spelling in comments --- source/blender/blenkernel/BKE_appdir.hh | 2 +- source/blender/blenkernel/intern/blendfile.cc | 2 +- .../blender/blenkernel/intern/grease_pencil_convert_legacy.cc | 4 ++-- source/blender/blenkernel/intern/main_namemap.cc | 2 +- source/blender/blenlib/intern/hash_md5.cc | 2 +- .../operations/COM_HueSaturationValueCorrectOperation.cc | 4 ++-- .../shaders/eevee_reflection_probe_convolve_comp.glsl | 2 +- source/blender/makesdna/DNA_ID.h | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/blender/blenkernel/BKE_appdir.hh b/source/blender/blenkernel/BKE_appdir.hh index 528cb849b6e..cce903ec2c6 100644 --- a/source/blender/blenkernel/BKE_appdir.hh +++ b/source/blender/blenkernel/BKE_appdir.hh @@ -176,7 +176,7 @@ enum { BLENDER_SYSTEM_PYTHON = 54, }; -/* for BKE_appdir_folder_id_version only */ +/** For #BKE_appdir_folder_id_version only. */ enum { BLENDER_RESOURCE_PATH_USER = 0, BLENDER_RESOURCE_PATH_LOCAL = 1, diff --git a/source/blender/blenkernel/intern/blendfile.cc b/source/blender/blenkernel/intern/blendfile.cc index a3df3db6c04..d3475de52ee 100644 --- a/source/blender/blenkernel/intern/blendfile.cc +++ b/source/blender/blenkernel/intern/blendfile.cc @@ -329,7 +329,7 @@ static void swap_old_bmain_data_for_blendfile(ReuseOldBMainData *reuse_data, con std::swap(*new_lb, *old_lb); - /* TODO: Could add per-IDType control over namemaps clearing, if this becomes a performances + /* TODO: Could add per-IDType control over name-maps clearing, if this becomes a performances * concern. */ BKE_main_namemap_clear(old_bmain); BKE_main_namemap_clear(new_bmain); diff --git a/source/blender/blenkernel/intern/grease_pencil_convert_legacy.cc b/source/blender/blenkernel/intern/grease_pencil_convert_legacy.cc index 470041f37fa..732715f7800 100644 --- a/source/blender/blenkernel/intern/grease_pencil_convert_legacy.cc +++ b/source/blender/blenkernel/intern/grease_pencil_convert_legacy.cc @@ -50,8 +50,8 @@ namespace blender::bke::greasepencil::convert { /* -------------------------------------------------------------------- */ /** \name Animation conversion helpers. * - * These utils will call given callback over all relavant fcurves (also includes drivers, and - * actions linked through the NLA). + * These utilities will call given callback over all relevant F-curves + * (also includes drivers, and actions linked through the NLA). * \{ */ static bool legacy_fcurves_process(ListBase &fcurves, diff --git a/source/blender/blenkernel/intern/main_namemap.cc b/source/blender/blenkernel/intern/main_namemap.cc index 63e7645952e..4b39f7dd41f 100644 --- a/source/blender/blenkernel/intern/main_namemap.cc +++ b/source/blender/blenkernel/intern/main_namemap.cc @@ -597,7 +597,7 @@ static bool main_namemap_validate_and_fix(Main *bmain, const bool do_fix) return is_valid; } - /* Clear all existing namemaps. */ + /* Clear all existing name-maps. */ BKE_main_namemap_clear(bmain); return is_valid; diff --git a/source/blender/blenlib/intern/hash_md5.cc b/source/blender/blenlib/intern/hash_md5.cc index ed1e105420e..90489f58452 100644 --- a/source/blender/blenlib/intern/hash_md5.cc +++ b/source/blender/blenlib/intern/hash_md5.cc @@ -286,7 +286,7 @@ int BLI_hash_md5_stream(FILE *stream, void *resblock) len[1] = 0; /* Iterate over full file contents. */ - while (1) { + while (true) { /* We read the file in blocks of BLOCKSIZE bytes. * One call of the computation function processes the whole buffer * so that with the next round of the loop another block can be read. diff --git a/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc b/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc index 5244fda2cca..de2eceeb1ba 100644 --- a/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc +++ b/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc @@ -32,7 +32,7 @@ void HueSaturationValueCorrectOperation::execute_pixel_sampled(float output[4], input_program_->read_sampled(hsv, x, y, sampler); - /* We parametrize the curve using the hue value. */ + /* We parameterize the curve using the hue value. */ const float parameter = hsv[0]; /* adjust hue, scaling returned default 0.5 up to 1 */ @@ -70,7 +70,7 @@ void HueSaturationValueCorrectOperation::update_memory_buffer_partial(MemoryBuff for (BuffersIterator it = output->iterate_with(inputs, area); !it.is_end(); ++it) { copy_v4_v4(hsv, it.in(0)); - /* We parametrize the curve using the hue value. */ + /* We parameterize the curve using the hue value. */ const float parameter = hsv[0]; /* Adjust hue, scaling returned default 0.5 up to 1. */ diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_reflection_probe_convolve_comp.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_reflection_probe_convolve_comp.glsl index 4caf825169e..968f0861cf1 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_reflection_probe_convolve_comp.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_reflection_probe_convolve_comp.glsl @@ -27,7 +27,7 @@ float roughness_from_relative_mip(float prev_mip_roughness, float curr_mip_rough float m_prev = pow(prev_mip_roughness, exponent); float m_curr = pow(curr_mip_roughness, exponent); /* Given that spherical gaussians are very close to regular gaussian in 1D, - * we reuse the same rule for successive convolution (i.e: G`(x,a) X G(x,b) = G(x,a+b)`). + * we reuse the same rule for successive convolution (i.e: `G(x,a) X G(x,b) = G(x,a+b)`). * While this isn't technically correct, this still works quite well in practice. */ float m_target = m_curr - m_prev; /* From GGX roughness input to linear roughness. */ diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index 702339c4c77..44e45b2f26e 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -1112,7 +1112,7 @@ typedef enum IDRecalcFlag { * have to be copied on every update. */ ID_RECALC_PARAMETERS = (1 << 21), - /* Input has changed and datablock is to be reload from disk. + /* Input has changed and data-block is to be reload from disk. * Applies to movie clips to inform that copy-on-written version is to be refreshed for the new * input file or for color space changes. */ ID_RECALC_SOURCE = (1 << 23),