From 9996d95ab933d07fcba73ffb78a014003d96473f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 6 Feb 2024 22:25:37 +1100 Subject: [PATCH] Cleanup: spelling in comments --- source/blender/blenkernel/BKE_deform.hh | 2 +- source/blender/blenlib/BLI_string_ref.hh | 2 +- source/blender/depsgraph/intern/builder/deg_builder.cc | 2 +- source/blender/draw/engines/eevee_next/eevee_shadow.cc | 6 +++--- .../draw/engines/eevee_next/shaders/eevee_gbuffer_lib.glsl | 2 +- source/blender/editors/include/UI_interface_c.hh | 2 +- .../editors/space_sequencer/sequencer_preview_draw.cc | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/source/blender/blenkernel/BKE_deform.hh b/source/blender/blenkernel/BKE_deform.hh index c44882d1e37..ff0665ec54d 100644 --- a/source/blender/blenkernel/BKE_deform.hh +++ b/source/blender/blenkernel/BKE_deform.hh @@ -93,7 +93,7 @@ void BKE_object_defgroup_unique_name(bDeformGroup *dg, Object *ob); MDeformWeight *BKE_defvert_find_index(const MDeformVert *dv, int defgroup); /** - * Ensures that `dv` has a deform weight entry for the specified defweight group. + * Ensures that `dv` has a deform weight entry for the specified group (`defgroup`). * * \note this function is mirrored in editmesh_tools.cc, for use for edit-vertices. */ diff --git a/source/blender/blenlib/BLI_string_ref.hh b/source/blender/blenlib/BLI_string_ref.hh index 35d11cb3f2b..40146961b10 100644 --- a/source/blender/blenlib/BLI_string_ref.hh +++ b/source/blender/blenlib/BLI_string_ref.hh @@ -626,7 +626,7 @@ constexpr bool operator>=(StringRef a, StringRef b) * \{ */ /** - * Support using the fmt library with #StringRef and implicitly also #StringRefNull. + * Support using the `fmt` library with #StringRef and implicitly also #StringRefNull. */ inline std::string_view format_as(StringRef str) { diff --git a/source/blender/depsgraph/intern/builder/deg_builder.cc b/source/blender/depsgraph/intern/builder/deg_builder.cc index e8ec58b4c36..b171061cb4d 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder.cc @@ -219,7 +219,7 @@ void deg_graph_build_finalize(Main *bmain, Depsgraph *graph) /* During undo the sequence strips might obtain a new session ID, which will disallow the * audio handles to be re-used. Tag for the audio and sequence update to ensure the audio * handles are open. - * MOTE: This is not something shat should be required, and perhaps indicates a weakness in + * NOTE: This is not something that should be required, and perhaps indicates a weakness in * design somewhere else. For the cause of the problem check #117760. */ flag |= ID_RECALC_AUDIO | ID_RECALC_SEQUENCER_STRIPS; } diff --git a/source/blender/draw/engines/eevee_next/eevee_shadow.cc b/source/blender/draw/engines/eevee_next/eevee_shadow.cc index 444bb95c51d..3c097449b45 100644 --- a/source/blender/draw/engines/eevee_next/eevee_shadow.cc +++ b/source/blender/draw/engines/eevee_next/eevee_shadow.cc @@ -1273,14 +1273,14 @@ bool ShadowModule::shadow_update_finished() { if (inst_.is_viewport()) { /* For viewport, only run the shadow update once per redraw. - * This avoids the stall from the readback and freezes from long shadow update. */ + * This avoids the stall from the read-back and freezes from long shadow update. */ return true; } int max_updated_view_count = tilemap_pool.tilemaps_data.size() * SHADOW_TILEMAP_LOD; if (max_updated_view_count <= SHADOW_VIEW_MAX) { - /* There is enough shadow views to cover all tilemap updates. - * No readback needed as it is guaranteed that all of them will be updated. */ + /* There is enough shadow views to cover all tile-map updates. + * No read-back needed as it is guaranteed that all of them will be updated. */ return true; } diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_gbuffer_lib.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_gbuffer_lib.glsl index 53aa8efb82f..1b403956574 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_gbuffer_lib.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_gbuffer_lib.glsl @@ -467,7 +467,7 @@ void gbuffer_additional_info_load(inout GBufferReader gbuf, samplerGBufferNormal * * \{ */ -/* Outputing dummy closure is required for correct render passes in case of unlit materials. */ +/** Outputting dummy closure is required for correct render passes in case of unlit materials. */ void gbuffer_closure_unlit_pack(inout GBufferWriter gbuf, vec3 N) { gbuffer_append_closure(gbuf, GBUF_UNLIT); diff --git a/source/blender/editors/include/UI_interface_c.hh b/source/blender/editors/include/UI_interface_c.hh index 82e3412a6d4..a57b32f6e6d 100644 --- a/source/blender/editors/include/UI_interface_c.hh +++ b/source/blender/editors/include/UI_interface_c.hh @@ -2284,7 +2284,7 @@ uiLayout *uiLayoutPanelProp(const bContext *C, /** * Variant of #uiLayoutPanelProp that automatically stores the open-close-state in the root * panel. When a dynamic number of panels is required, it's recommended to use #uiLayoutPanelProp - * instead of passing in generated idnames. + * instead of passing in generated id names. * * \param idname: String that identifies the open-close-state in the root panel. */ diff --git a/source/blender/editors/space_sequencer/sequencer_preview_draw.cc b/source/blender/editors/space_sequencer/sequencer_preview_draw.cc index 52434ef9d75..c175e464c92 100644 --- a/source/blender/editors/space_sequencer/sequencer_preview_draw.cc +++ b/source/blender/editors/space_sequencer/sequencer_preview_draw.cc @@ -640,7 +640,7 @@ static void draw_vectorscope_graticule(ARegion *region, SeqQuadsBatch &quads, co const float w = BLI_rctf_size_x(&area); const float h = BLI_rctf_size_y(&area); const float2 center{BLI_rctf_cent_x(&area), BLI_rctf_cent_y(&area)}; - /* Vectorscope image is scaled over UV range (+/-0.615). */ + /* Vector-scope image is scaled over UV range (+/-0.615). */ const float radius = ((w < h) ? w : h) * 0.5f * (0.5f / 0.615f); /* Precalculate circle points/colors. */