From 3dbbc013ded411bab26e89423d3fbbcf961faecb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 10 Feb 2024 22:35:35 +1100 Subject: [PATCH] Cleanup: spelling in comments --- intern/cycles/device/denoise.h | 3 +-- scripts/modules/bpy_extras/anim_utils.py | 2 +- source/blender/blenkernel/BKE_grease_pencil.hh | 2 +- source/blender/blenloader/BLO_readfile.hh | 2 +- source/blender/blentranslation/BLT_translation.hh | 2 +- source/blender/compositor/COM_profile.hh | 2 +- source/blender/draw/engines/eevee_next/eevee_defines.hh | 4 ++-- .../blender/draw/engines/eevee_next/eevee_planar_probes.cc | 2 +- .../draw/engines/eevee_next/eevee_reflection_probes.cc | 6 +++--- source/blender/editors/space_outliner/outliner_edit.cc | 4 ++-- 10 files changed, 14 insertions(+), 15 deletions(-) diff --git a/intern/cycles/device/denoise.h b/intern/cycles/device/denoise.h index ca5f651bb05..ad7a31fea60 100644 --- a/intern/cycles/device/denoise.h +++ b/intern/cycles/device/denoise.h @@ -70,8 +70,7 @@ class DenoiseParams : public Node { bool temporally_stable = false; /* If true, then allow, if supported, OpenImageDenoise to use GPU device. - * If false, then OpenImageDenoise will always use CPU regardless of GPU device - * precense. */ + * If false, then OpenImageDenoise will always use CPU regardless of GPU device presence. */ bool use_gpu = true; DenoiserPrefilter prefilter = DENOISER_PREFILTER_FAST; diff --git a/scripts/modules/bpy_extras/anim_utils.py b/scripts/modules/bpy_extras/anim_utils.py index 15c45104551..747c2516d23 100644 --- a/scripts/modules/bpy_extras/anim_utils.py +++ b/scripts/modules/bpy_extras/anim_utils.py @@ -233,7 +233,7 @@ def bake_action_iter( return {} # Be careful about which properties to actually consider for baking, as - # keeping references to complex Blender datastructures around for too long + # keeping references to complex Blender data-structures around for too long # can cause crashes. See #117988. clean_props = { key: rna_idprop_value_to_python(value) diff --git a/source/blender/blenkernel/BKE_grease_pencil.hh b/source/blender/blenkernel/BKE_grease_pencil.hh index d5304351ebd..0462e8e36b5 100644 --- a/source/blender/blenkernel/BKE_grease_pencil.hh +++ b/source/blender/blenkernel/BKE_grease_pencil.hh @@ -476,7 +476,7 @@ class Layer : public ::GreasePencilLayer { float4x4 local_transform() const; /** - * Get the parent to world marix for this layer. + * Get the parent to world matrix for this layer. */ float4x4 parent_to_world(const Object &parent) const; }; diff --git a/source/blender/blenloader/BLO_readfile.hh b/source/blender/blenloader/BLO_readfile.hh index 1f808e2579a..3f787f16d90 100644 --- a/source/blender/blenloader/BLO_readfile.hh +++ b/source/blender/blenloader/BLO_readfile.hh @@ -77,7 +77,7 @@ struct BlendFileData { * of WindowManager and other UI data-blocks across blend-file reading process. */ struct BlendFileReadWMSetupData { - /** The existing WM when filereading process is started. */ + /** The existing WM when file-reading process is started. */ wmWindowManager *old_wm; /** The startup file is being read. */ diff --git a/source/blender/blentranslation/BLT_translation.hh b/source/blender/blentranslation/BLT_translation.hh index 692a6ba699e..677ee3ce9b2 100644 --- a/source/blender/blentranslation/BLT_translation.hh +++ b/source/blender/blentranslation/BLT_translation.hh @@ -84,7 +84,7 @@ const char *BLT_translate_do_new_dataname(const char *msgctxt, const char *msgid #define BLT_I18NCONTEXT_PLURAL "Plural" /* ID-types contexts. */ -/* WARNING! Keep it in sync with idtypes in blenkernel/intern/idcode.c */ +/* WARNING! Keep it in sync with ID-types in `blenkernel/intern/idtype.cc`. */ #define BLT_I18NCONTEXT_ID_ACTION "Action" #define BLT_I18NCONTEXT_ID_ARMATURE "Armature" #define BLT_I18NCONTEXT_ID_BRUSH "Brush" diff --git a/source/blender/compositor/COM_profile.hh b/source/blender/compositor/COM_profile.hh index d386e6d3bd1..26d13b8a3ee 100644 --- a/source/blender/compositor/COM_profile.hh +++ b/source/blender/compositor/COM_profile.hh @@ -15,7 +15,7 @@ namespace blender::compositor { class NodeOperation; -/* Profiling ddata gathered during execution of a compositing node tree. */ +/* Profiling data gathered during execution of a compositing node tree. */ class ProfilerData { public: /* Per-node accumulated execution time. Includes execution time of all operations the node was diff --git a/source/blender/draw/engines/eevee_next/eevee_defines.hh b/source/blender/draw/engines/eevee_next/eevee_defines.hh index 589dc8a4fa5..4eb54f9802c 100644 --- a/source/blender/draw/engines/eevee_next/eevee_defines.hh +++ b/source/blender/draw/engines/eevee_next/eevee_defines.hh @@ -38,14 +38,14 @@ #define SPHERE_PROBE_SH_GROUP_SIZE 512 #define SPHERE_PROBE_SH_SAMPLES_PER_GROUP 64 /** - * Limited by the UBO size limit (16384 bytes / sizeof(SphereProbeData)). + * Limited by the UBO size limit `(16384 bytes / sizeof(SphereProbeData))`. */ #define SPHERE_PROBE_MAX 128 /** * Limited by the performance impact it can cause. * Limited by the max layer count supported by a hardware (256). - * Limited by the UBO size limit (16384 bytes / sizeof(PlanarProbeData)). + * Limited by the UBO size limit `(16384 bytes / sizeof(PlanarProbeData))`. */ #define PLANAR_PROBE_MAX 16 diff --git a/source/blender/draw/engines/eevee_next/eevee_planar_probes.cc b/source/blender/draw/engines/eevee_next/eevee_planar_probes.cc index 2fe14feb23d..0e746dd81d9 100644 --- a/source/blender/draw/engines/eevee_next/eevee_planar_probes.cc +++ b/source/blender/draw/engines/eevee_next/eevee_planar_probes.cc @@ -36,7 +36,7 @@ void PlanarProbe::set_view(const draw::View &view, int layer_id) void PlanarProbeModule::init() { - /* This triggers the compilation of clipped shader only if we can detect lightprobe planes. */ + /* This triggers the compilation of clipped shader only if we can detect light-probe planes. */ if (inst_.is_viewport()) { /* This check needs to happen upfront before sync, so we use the previous sync result. */ update_probes_ = !inst_.light_probes.planar_map_.is_empty(); diff --git a/source/blender/draw/engines/eevee_next/eevee_reflection_probes.cc b/source/blender/draw/engines/eevee_next/eevee_reflection_probes.cc index 40344d1b9fc..085b813fe91 100644 --- a/source/blender/draw/engines/eevee_next/eevee_reflection_probes.cc +++ b/source/blender/draw/engines/eevee_next/eevee_reflection_probes.cc @@ -74,7 +74,7 @@ void SphereProbeModule::begin_sync() bool SphereProbeModule::ensure_atlas() { - /* Make sure the atlas is always initialized even if there is nothing to render to it to fullfil + /* Make sure the atlas is always initialized even if there is nothing to render to it to fulfill * the resource bindings. */ eGPUTextureUsage usage = GPU_TEXTURE_USAGE_SHADER_WRITE | GPU_TEXTURE_USAGE_SHADER_READ; @@ -110,7 +110,7 @@ void SphereProbeModule::end_sync() if (probe.do_render) { /* Tag the next redraw to warm up the probe pipeline. * Keep doing this until there is no update. - * This avoids stuttering when moving a lightprobe. */ + * This avoids stuttering when moving a light-probe. */ update_probes_next_sample_ = true; } } @@ -127,7 +127,7 @@ void SphereProbeModule::ensure_cubemap_render_target(int resolution) { GPU_texture_mipmap_mode(cubemap_tx_, false, true); } - /* TODO(fclem): dealocate it. */ + /* TODO(fclem): deallocate it. */ } SphereProbeModule::UpdateInfo SphereProbeModule::update_info_from_probe(const SphereProbe &probe) diff --git a/source/blender/editors/space_outliner/outliner_edit.cc b/source/blender/editors/space_outliner/outliner_edit.cc index 6d6c1ae964b..c10eae6b868 100644 --- a/source/blender/editors/space_outliner/outliner_edit.cc +++ b/source/blender/editors/space_outliner/outliner_edit.cc @@ -2161,7 +2161,7 @@ static void unused_message_gen(std::string &message, static int unused_message_popup_width_compute(bContext *C) { /* Computation of unused data amounts, with all options ON. - * Used to estimate the maximum required witdh for the dialog. */ + * Used to estimate the maximum required width for the dialog. */ Main *bmain = CTX_data_main(C); LibQueryUnusedIDsData data = {true, true, true, {}, {}, {}}; BKE_lib_query_unused_ids_amounts(bmain, data); @@ -2326,7 +2326,7 @@ void OUTLINER_OT_orphans_purge(wmOperatorType *ot) /* NOTE: No #OPTYPE_REGISTER, since this operator should not be 'adjustable'. */ ot->flag = OPTYPE_UNDO; - /* Actual user-visibla settings. */ + /* Actual user-visible settings. */ RNA_def_boolean(ot->srna, "do_local_ids", true,