diff --git a/source/blender/blenkernel/BKE_nla.h b/source/blender/blenkernel/BKE_nla.h index e3d0bbcc60d..58cdb8af4bd 100644 --- a/source/blender/blenkernel/BKE_nla.h +++ b/source/blender/blenkernel/BKE_nla.h @@ -511,7 +511,7 @@ void BKE_nla_tweakmode_clear_flags(struct AnimData *adt); * the Action. * * This function just writes to the AnimData-owned data. It is intended to be - * used in blendfile reading code, which performs a reference count later + * used in blend-file reading code, which performs a reference count later * anyway. */ void BKE_nla_tweakmode_exit_nofollowptr(AnimData *adt); diff --git a/source/blender/compositor/operations/COM_FileOutputOperation.cc b/source/blender/compositor/operations/COM_FileOutputOperation.cc index 4f09a0ac5c6..82ed02757c1 100644 --- a/source/blender/compositor/operations/COM_FileOutputOperation.cc +++ b/source/blender/compositor/operations/COM_FileOutputOperation.cc @@ -116,7 +116,7 @@ void FileOutputOperation::deinit_execution() const int2 size = int2(get_width(), get_height()); if (size == int2(0)) { for (const FileOutputInput &input : file_output_inputs_) { - /* Ownership of outputs buffers are transfered to file outputs, so if we are not writing a + /* Ownership of outputs buffers are transferred to file outputs, so if we are not writing a * file output, we need to free the output buffer here. */ if (input.output_buffer) { MEM_freeN(input.output_buffer); @@ -143,7 +143,7 @@ void FileOutputOperation::execute_single_layer() for (const FileOutputInput &input : file_output_inputs_) { /* We only write images, not single values. */ if (!input.image_input || input.image_input->get_flags().is_constant_operation) { - /* Ownership of outputs buffers are transfered to file outputs, so if we are not writing a + /* Ownership of outputs buffers are transferred to file outputs, so if we are not writing a * file output, we need to free the output buffer here. */ if (input.output_buffer) { MEM_freeN(input.output_buffer); @@ -236,7 +236,7 @@ void FileOutputOperation::execute_multi_layer() for (const FileOutputInput &input : file_output_inputs_) { /* We only write images, not single values. */ if (!input.image_input || input.image_input->get_flags().is_constant_operation) { - /* Ownership of outputs buffers are transfered to file outputs, so if we are not writing a + /* Ownership of outputs buffers are transferred to file outputs, so if we are not writing a * file output, we need to free the output buffer here. */ if (input.output_buffer) { MEM_freeN(input.output_buffer); diff --git a/source/blender/draw/engines/eevee_next/eevee_pipeline.cc b/source/blender/draw/engines/eevee_next/eevee_pipeline.cc index 51881057b6d..97d35c48280 100644 --- a/source/blender/draw/engines/eevee_next/eevee_pipeline.cc +++ b/source/blender/draw/engines/eevee_next/eevee_pipeline.cc @@ -772,7 +772,7 @@ GPUTexture *DeferredLayer::render(View &main_view, inst_.manager->submit(combine_ps_); if (use_feedback_output_ && !use_clamp_direct_) { - /* We skip writting the radiance during the combine pass. Do a simple fast copy. */ + /* We skip writing the radiance during the combine pass. Do a simple fast copy. */ GPU_texture_copy(radiance_feedback_tx_, rb.combined_tx); } diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_spherical_harmonics_lib.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_spherical_harmonics_lib.glsl index 673a4155e3e..0ab5fc237bd 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_spherical_harmonics_lib.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_spherical_harmonics_lib.glsl @@ -722,7 +722,7 @@ SphericalHarmonicL1 spherical_harmonics_clamp(SphericalHarmonicL1 sh, float clam vec3 max_L1 = vec3(reduce_max(abs(per_channel[0].yzw)), reduce_max(abs(per_channel[1].yzw)), reduce_max(abs(per_channel[2].yzw))); - /* Find maximum of the sh function over all chanels. */ + /* Find maximum of the sh function over all channels. */ vec3 max_sh = abs(sh.L0.M0.rgb) * 0.282094792 + max_L1 * 0.488602512; float fac = clamp_value * safe_rcp(reduce_max(max_sh)); diff --git a/source/blender/editors/grease_pencil/intern/grease_pencil_cutter.cc b/source/blender/editors/grease_pencil/intern/grease_pencil_cutter.cc index 6ab7bc37949..ce371126d36 100644 --- a/source/blender/editors/grease_pencil/intern/grease_pencil_cutter.cc +++ b/source/blender/editors/grease_pencil/intern/grease_pencil_cutter.cc @@ -134,7 +134,7 @@ struct CutterSegments { * that intersect for the eye, but not in hard numbers. */ static constexpr int BBOX_PADDING = 2; -/* When creating new intersection points, we don't want them too close to their neighbour, +/* When creating new intersection points, we don't want them too close to their neighbor, * because that clutters the geometry. This threshold defines what 'too close' is. */ static constexpr float DISTANCE_FACTOR_THRESHOLD = 0.01f; diff --git a/source/blender/editors/space_graph/graph_draw.cc b/source/blender/editors/space_graph/graph_draw.cc index 0a1dcc88122..3311878e2d7 100644 --- a/source/blender/editors/space_graph/graph_draw.cc +++ b/source/blender/editors/space_graph/graph_draw.cc @@ -65,7 +65,8 @@ static blender::IndexRange get_bounding_bezt_index_range(FCurve *fcu, last = BKE_fcurve_bezt_binarysearch_index(fcu->bezt, max, fcu->totvert, &replace); last = replace ? last + 1 : last; last = clamp_i(last, 0, fcu->totvert - 1); - /* Iterating over index range is exlusive of the last index. But we need `last` to be visited. */ + /* Iterating over index range is exclusive of the last index. + * But we need `last` to be visited. */ return blender::IndexRange(first, (last - first) + 1); } diff --git a/source/blender/gpu/vulkan/render_graph/vk_render_graph.hh b/source/blender/gpu/vulkan/render_graph/vk_render_graph.hh index 6c32b845638..201bafec8e5 100644 --- a/source/blender/gpu/vulkan/render_graph/vk_render_graph.hh +++ b/source/blender/gpu/vulkan/render_graph/vk_render_graph.hh @@ -169,7 +169,7 @@ class VKRenderGraph : public NonCopyable { * Submit partial graph to be able to read the expected result of the rendering commands * affecting the given vk_buffer. This method is called from * `GPU_texture/storagebuf/indexbuf/vertbuf/_read`. In vulkan the content of images cannot be - * read directly and always needs tobe copied to a transfer buffer. + * read directly and always needs to be copied to a transfer buffer. * * After calling this function the mapped memory of the vk_buffer would contain the data of the * buffer. diff --git a/source/blender/gpu/vulkan/render_graph/vk_resource_state_tracker.hh b/source/blender/gpu/vulkan/render_graph/vk_resource_state_tracker.hh index 7861df99009..ff775f4f961 100644 --- a/source/blender/gpu/vulkan/render_graph/vk_resource_state_tracker.hh +++ b/source/blender/gpu/vulkan/render_graph/vk_resource_state_tracker.hh @@ -17,7 +17,7 @@ * different workflow as its state can be altered externally and needs to be reset. * - Read/Write access masks: To generate correct and performing pipeline barriers the src/dst * access masks needs to be accurate and precise. When creating pipeline barriers the resource - * usage upto that point should be known and the resource usage from that point on. + * usage up to that point should be known and the resource usage from that point on. */ #pragma once diff --git a/source/blender/gpu/vulkan/vk_pipeline_pool.hh b/source/blender/gpu/vulkan/vk_pipeline_pool.hh index e9052cc7837..2bf5faf8cf2 100644 --- a/source/blender/gpu/vulkan/vk_pipeline_pool.hh +++ b/source/blender/gpu/vulkan/vk_pipeline_pool.hh @@ -61,17 +61,17 @@ class VKDevice; * Some of the information would be boiler plating; or at least from Blender point of view. To * improve lookup performance we use a slimmed down version of the pipeline create info structs. * The idea is that we can limit the required data because we control which data we actually use, - * removing te boiler plating and improve hashing performance better than the VkPipelineCache can + * removing the boiler plating and improve hashing performance better than the VkPipelineCache can * give us. * * TODO: Extensions like `VK_EXT_graphics_pipeline_library` should fit in this class and ease the - * development for graphics pipelines. Geometry in and framebuffer out could be cached separately + * development for graphics pipelines. Geometry in and frame-buffer out could be cached separately * to reduce pipeline creation times. Most likely we will add support when we work on graphic * pipelines. Recent drivers all support this extension, but the full coverage is still <20%. A * fallback should made available for older drivers is required. * * TODO: Creation of shader modules needs to be revisited. - * VK_EXT_graphics_pipeline_library deprecates the use of shader modules and use the spriv bin + * VK_EXT_graphics_pipeline_library deprecates the use of shader modules and use the `spriv` bin * directly. In this extension the pipeline and shader module are the same. The current approach * should also be revisited as the latest drivers all implement pipeline libraries, but there are * some platforms where the driver isn't been updated and doesn't implement this extension. In diff --git a/source/blender/io/usd/intern/usd_reader_prim.hh b/source/blender/io/usd/intern/usd_reader_prim.hh index 05758896bf8..c693e029684 100644 --- a/source/blender/io/usd/intern/usd_reader_prim.hh +++ b/source/blender/io/usd/intern/usd_reader_prim.hh @@ -180,7 +180,7 @@ class USDPrimReader { * * \param merge_with_parent: If true, set the properties of the prim's parent * on the object ID - * \param motionSampleTime: The time code for sampling tha USD attributes + * \param motionSampleTime: The time code for sampling the USD attributes. */ void set_props(bool merge_with_parent = false, pxr::UsdTimeCode motionSampleTime = pxr::UsdTimeCode::Default()); diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 0a2282637b1..fd50d44a168 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -2860,7 +2860,7 @@ typedef enum RaytraceEEVEE_DenoiseStages { } RaytraceEEVEE_DenoiseStages; typedef enum RaytraceEEVEE_Method { - /* NOTE: Each method contains the previos one. */ + /* NOTE: Each method contains the previous one. */ RAYTRACE_EEVEE_METHOD_PROBE = 0, RAYTRACE_EEVEE_METHOD_SCREEN = 1, /* TODO(fclem): Hardware ray-tracing. */ diff --git a/source/blender/makesrna/RNA_types.hh b/source/blender/makesrna/RNA_types.hh index cf4ee3c33d5..90e3334ed4e 100644 --- a/source/blender/makesrna/RNA_types.hh +++ b/source/blender/makesrna/RNA_types.hh @@ -84,7 +84,7 @@ enum PropertyUnit { PROP_UNIT_CAMERA = (10 << 16), /* mm */ PROP_UNIT_POWER = (11 << 16), /* W */ PROP_UNIT_TEMPERATURE = (12 << 16), /* C */ - PROP_UNIT_WAVELENGTH = (13 << 16), /* nm (independent of scene) */ + PROP_UNIT_WAVELENGTH = (13 << 16), /* `nm` (independent of scene). */ }; ENUM_OPERATORS(PropertyUnit, PROP_UNIT_TEMPERATURE) diff --git a/source/blender/makesrna/intern/rna_internal_types.hh b/source/blender/makesrna/intern/rna_internal_types.hh index 9fc7885fafe..de51227bc20 100644 --- a/source/blender/makesrna/intern/rna_internal_types.hh +++ b/source/blender/makesrna/intern/rna_internal_types.hh @@ -160,8 +160,8 @@ struct PropertyRNAOrID { */ bool is_idprop; /** - * Whether this property is defined as a RNA one, but uses an IDProperty to store its value (aka - * python-defined runtine RNA properties). + * Whether this property is defined as a RNA one, but uses an #IDProperty to store its value + * (aka Python-defined runtime RNA properties). * * \note: In that case, the IDProperty itself may very well not exist (yet), when it has never * been set. diff --git a/tools/check_source/check_spelling_config.py b/tools/check_source/check_spelling_config.py index 2b03f97871d..bd93ba8da0a 100644 --- a/tools/check_source/check_spelling_config.py +++ b/tools/check_source/check_spelling_config.py @@ -568,7 +568,7 @@ dict_custom = { "unparent", # Accepted abbreviations. - # "dir", # direction/directory? Too ambiguous, don't use this. + # `"dir",` # direction/directory? Too ambiguous, don't use this. "anim", # animation. "attr", "attrs",