From 0c26c847047ddaf47960cf8ef961d587239e1b2a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 5 Sep 2023 10:49:20 +1000 Subject: [PATCH] Cleanup: spelling in comments --- intern/ghost/intern/GHOST_SystemCocoa.mm | 2 +- intern/ghost/intern/GHOST_SystemX11.cc | 2 +- .../modules/freestyle/chainingiterators.py | 9 ++++----- scripts/freestyle/modules/freestyle/shaders.py | 11 +++++------ scripts/freestyle/modules/freestyle/utils.py | 6 +++--- scripts/freestyle/modules/parameter_editor.py | 3 +-- scripts/modules/addon_utils.py | 4 ++-- scripts/modules/bl_app_template_utils.py | 2 +- .../bl_console_utils/autocomplete/__init__.py | 2 +- .../autocomplete/complete_calltip.py | 4 ++-- .../autocomplete/complete_import.py | 2 +- .../autocomplete/complete_namespace.py | 2 +- .../bl_console_utils/autocomplete/intellisense.py | 2 +- .../modules/bl_i18n_utils/bl_extract_messages.py | 2 +- scripts/modules/bl_i18n_utils/settings.py | 10 +++++----- scripts/modules/bl_i18n_utils/utils.py | 12 ++++++------ .../modules/bl_i18n_utils/utils_languages_menu.py | 2 +- scripts/modules/bl_i18n_utils/utils_rtl.py | 2 +- scripts/modules/bl_i18n_utils/utils_spell_check.py | 6 +++--- scripts/modules/bpy_extras/anim_utils.py | 2 +- .../modules/bpy_extras/wm_utils/progress_report.py | 10 +++++----- scripts/modules/bpy_types.py | 2 +- scripts/modules/console_python.py | 2 +- scripts/modules/nodeitems_utils.py | 2 +- scripts/modules/rna_prop_ui.py | 2 +- scripts/modules/rna_xml.py | 2 +- .../keyconfig/keymap_data/blender_default.py | 12 ++++++------ .../keymap_data/industry_compatible_data.py | 9 +++++---- .../2D_Animation/__init__.py | 2 +- scripts/startup/bl_operators/anim.py | 12 ++++++------ scripts/startup/bl_operators/mesh.py | 2 +- .../startup/bl_operators/object_quick_effects.py | 2 +- scripts/startup/bl_operators/userpref.py | 2 +- scripts/startup/bl_operators/wm.py | 4 ++-- .../bl_ui/properties_grease_pencil_common.py | 2 +- scripts/startup/bl_ui/properties_physics_fluid.py | 2 +- .../startup/bl_ui/properties_physics_rigidbody.py | 2 +- scripts/startup/bl_ui/space_clip.py | 2 +- scripts/startup/bl_ui/space_dopesheet.py | 4 ++-- scripts/startup/bl_ui/space_image.py | 4 ++-- scripts/startup/bl_ui/space_node.py | 2 +- scripts/startup/bl_ui/space_toolsystem_common.py | 4 ++-- scripts/startup/bl_ui/space_topbar.py | 4 ++-- scripts/startup/bl_ui/space_view3d.py | 8 ++++---- scripts/startup/bl_ui/space_view3d_toolbar.py | 4 ++-- scripts/templates_py/operator_file_export.py | 2 +- scripts/templates_py/operator_file_import.py | 2 +- .../templates_py/operator_modal_view3d_raycast.py | 2 +- source/blender/blenkernel/BKE_constraint.h | 2 +- source/blender/blenkernel/BKE_fcurve.h | 2 +- source/blender/blenkernel/BKE_lib_remap.h | 6 +++--- source/blender/blenkernel/BKE_screen.h | 2 +- source/blender/blenkernel/intern/object_dupli.cc | 4 ++-- source/blender/blenloader/BLO_undofile.hh | 2 +- .../blender/compositor/intern/COM_ExecutionGroup.h | 4 ++-- .../engines/eevee/shaders/closure_type_lib.glsl | 2 +- .../blender/draw/engines/eevee_next/eevee_lut.hh | 2 +- .../draw/engines/eevee_next/eevee_precompute.hh | 4 ++-- .../shaders/eevee_light_culling_zbin_comp.glsl | 4 ++-- .../shaders/eevee_lightprobe_eval_lib.glsl | 2 +- .../eevee_next/shaders/eevee_nodetree_lib.glsl | 4 ++-- .../shaders/eevee_shadow_page_defrag_comp.glsl | 6 +++--- .../shaders/eevee_shadow_page_ops_lib.glsl | 4 ++-- .../shaders/eevee_shadow_tag_update_comp.glsl | 4 ++-- .../shaders/eevee_shadow_tilemap_init_comp.glsl | 2 +- .../overlay/shaders/overlay_depth_only_frag.glsl | 2 +- source/blender/editors/transform/transform_data.hh | 8 +++++--- source/blender/gpu/GPU_texture.h | 2 +- source/blender/gpu/metal/mtl_shader.mm | 2 +- source/blender/nodes/intern/discover_nodes.py | 14 +++++++------- tools/check_source/check_cmake_consistency.py | 4 ++-- tools/check_source/check_mypy.py | 2 +- tools/check_source/check_spelling.py | 14 +++++++------- tools/check_source/check_spelling_config.py | 8 +++++++- tools/triage/gitea_utils.py | 4 ++-- tools/utils/cycles_commits_sync.py | 2 +- tools/utils/make_cursor_gui.py | 2 +- tools/utils_api/bpy_introspect_ui.py | 2 +- .../externaltools/qtc_assembler_preview.py | 5 +++-- tools/utils_maintenance/cmake_sort_filelists.py | 2 +- 80 files changed, 166 insertions(+), 159 deletions(-) diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index b2fa4de47b9..2a3f8870854 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -1763,7 +1763,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr) dx = [event scrollingDeltaX]; dy = [event scrollingDeltaY]; - /* However, Wacom tablet (intuos5) needs old deltas, + /* However, WACOM tablet (intuos5) needs old deltas, * it then has momentum and phase at zero. */ if (phase == NSEventPhaseNone && momentumPhase == NSEventPhaseNone) { dx = [event deltaX]; diff --git a/intern/ghost/intern/GHOST_SystemX11.cc b/intern/ghost/intern/GHOST_SystemX11.cc index d5576319e37..47d62212739 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cc +++ b/intern/ghost/intern/GHOST_SystemX11.cc @@ -482,7 +482,7 @@ static void SleepTillEvent(Display *display, int64_t maxSleep) } } -/* This function borrowed from Qt's X11 support qclipboard_x11.cpp */ +/* This function borrowed from QT's X11 support `qclipboard_x11.cpp`. */ struct init_timestamp_data { Time timestamp; }; diff --git a/scripts/freestyle/modules/freestyle/chainingiterators.py b/scripts/freestyle/modules/freestyle/chainingiterators.py index 58f12f3b75f..62730b01d3a 100644 --- a/scripts/freestyle/modules/freestyle/chainingiterators.py +++ b/scripts/freestyle/modules/freestyle/chainingiterators.py @@ -224,7 +224,7 @@ class pySketchyChainSilhouetteIterator(ChainingIterator): # keeping this local saves passing a reference to 'self' around def make_sketchy(self, ve): """ - Creates the skeychy effect by causing the chain to run from + Creates the sketchy effect by causing the chain to run from the start again. (loop over itself again) """ if ve is None: @@ -459,9 +459,8 @@ class pyFillOcclusionsAbsoluteAndRelativeChainingIterator(ChainingIterator): self._percent = float(percent) def init(self): - # each time we're evaluating a chain length - # we try to do it once. Thus we reinit - # the chain length here: + # Each time we're evaluating a chain length we try to do it once. + # Thus we reinitialize the chain length here: self._length = 0.0 def traverse(self, iter): @@ -531,7 +530,7 @@ class pyFillQi0AbsoluteAndRelativeChainingIterator(ChainingIterator): self._percent = percent def init(self): - # A chain's length should preverably be evaluated only once. + # A chain's length should preferably be evaluated only once. # Therefore, the chain length is reset here. self._length = 0.0 diff --git a/scripts/freestyle/modules/freestyle/shaders.py b/scripts/freestyle/modules/freestyle/shaders.py index a15f60a5909..a748812985a 100644 --- a/scripts/freestyle/modules/freestyle/shaders.py +++ b/scripts/freestyle/modules/freestyle/shaders.py @@ -2,7 +2,6 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -# Filename : shaders.py # Authors : Fredo Durand, Stephane Grabli, Francois Sillion, Emmanuel Turquin # Date : 11/08/2005 # Purpose : Stroke shaders to be used for creation of stylized strokes @@ -834,7 +833,7 @@ class pyPerlinNoise1DShader(StrokeShader): """ Displaces the stroke using the curvilinear abscissa. This means that lines with the same length and sampling interval will be - identically distorded. + identically distorted. """ def __init__(self, freq=10, amp=10, oct=4, seed=-1): @@ -855,10 +854,10 @@ class pyPerlinNoise1DShader(StrokeShader): class pyPerlinNoise2DShader(StrokeShader): """ Displaces the stroke using the strokes coordinates. This means - that in a scene no strokes will be distorded identically. + that in a scene no strokes will be distorted identically. More information on the noise shaders can be found at: - freestyleintegration.wordpress.com/2011/09/25/development-updates-on-september-25/ + https://freestyleintegration.wordpress.com/2011/09/25/development-updates-on-september-25/ """ def __init__(self, freq=10, amp=10, oct=4, seed=-1): @@ -898,7 +897,7 @@ class pyBluePrintCirclesShader(StrokeShader): C = self.__random_center # The directions (and phases) are calculated using a separate - # function decorated with an lru-cache. This guarantees that + # function decorated with an LRU-cache. This guarantees that # the directions (involving sin and cos) are calculated as few # times as possible. # @@ -977,7 +976,7 @@ class pyBluePrintEllipsesShader(StrokeShader): class pyBluePrintSquaresShader(StrokeShader): def __init__(self, turns=1, bb_len=10, bb_rand=0): StrokeShader.__init__(self) - self.__turns = turns # does not have any effect atm + self.__turns = turns # Does not have any effect ATM. self.__bb_len = bb_len self.__bb_rand = bb_rand diff --git a/scripts/freestyle/modules/freestyle/utils.py b/scripts/freestyle/modules/freestyle/utils.py index 56bdab63e5e..92541a2cd8e 100644 --- a/scripts/freestyle/modules/freestyle/utils.py +++ b/scripts/freestyle/modules/freestyle/utils.py @@ -147,7 +147,7 @@ def normal_at_I0D(it: Interface0DIterator) -> Vector: # give iterator back in original state it.decrement() elif it.is_end: - # just fail hard: this shouldn not happen + # Just fail hard: this should not happen. raise StopIteration() else: # this case sometimes has a small difference with Normal2DF0D (1e-3 -ish) @@ -197,8 +197,8 @@ def phase_to_direction(length): return results -# -- simplification of a set of points; based on simplify.js by Vladimir Agafonkin -- -# https://mourner.github.io/simplify-js/ +# Simplification of a set of points; based on `simplify.js`: +# See: https://mourner.github.io/simplify-js def getSquareSegmentDistance(p, p1, p2): """ diff --git a/scripts/freestyle/modules/parameter_editor.py b/scripts/freestyle/modules/parameter_editor.py index ef10e82e7d3..d598c4a097e 100644 --- a/scripts/freestyle/modules/parameter_editor.py +++ b/scripts/freestyle/modules/parameter_editor.py @@ -2,7 +2,6 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -# Filename : parameter_editor.py # Authors : Tamito Kajiyama # Date : 26/07/2010 # Purpose : Interactive manipulation of stylization parameters @@ -811,7 +810,7 @@ class PerlinNoise1DShader(StrokeShader): """ Displaces the stroke using the curvilinear abscissa. This means that lines with the same length and sampling interval will be - identically distorded. + identically distorted. """ def __init__(self, freq=10, amp=10, oct=4, angle=radians(45), seed=-1): diff --git a/scripts/modules/addon_utils.py b/scripts/modules/addon_utils.py index f20bd2f918a..85ab9645751 100644 --- a/scripts/modules/addon_utils.py +++ b/scripts/modules/addon_utils.py @@ -441,9 +441,9 @@ def disable(module_name, *, default_set=False, handle_error=None): mod = sys.modules.get(module_name) - # possible this addon is from a previous session and didn't load a + # Possible this add-on is from a previous session and didn't load a # module this time. So even if the module is not found, still disable - # the addon in the user prefs. + # the add-on in the user preferences. if mod and getattr(mod, "__addon_enabled__", False) is not False: mod.__addon_enabled__ = False mod.__addon_persistent = False diff --git a/scripts/modules/bl_app_template_utils.py b/scripts/modules/bl_app_template_utils.py index e54312c4497..a770c391602 100644 --- a/scripts/modules/bl_app_template_utils.py +++ b/scripts/modules/bl_app_template_utils.py @@ -23,7 +23,7 @@ _app_template = { "id": "", } -# instead of sys.modules +# Instead of `sys.modules` # note that we only ever have one template enabled at a time # so it may not seem necessary to use this. # diff --git a/scripts/modules/bl_console_utils/autocomplete/__init__.py b/scripts/modules/bl_console_utils/autocomplete/__init__.py index b6744537c93..02f8edf8f51 100644 --- a/scripts/modules/bl_console_utils/autocomplete/__init__.py +++ b/scripts/modules/bl_console_utils/autocomplete/__init__.py @@ -2,6 +2,6 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2009 www.stani.be +# Copyright (c) 2009 https://www.stani.be """Package for console specific modules.""" diff --git a/scripts/modules/bl_console_utils/autocomplete/complete_calltip.py b/scripts/modules/bl_console_utils/autocomplete/complete_calltip.py index 06a41f9482d..380a1775d50 100644 --- a/scripts/modules/bl_console_utils/autocomplete/complete_calltip.py +++ b/scripts/modules/bl_console_utils/autocomplete/complete_calltip.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2009 www.stani.be +# Copyright (c) 2009 https://www.stani.be import inspect import re @@ -131,7 +131,7 @@ def get_argspec(func, *, strip_self=True, doc=None, source=None): def complete(line, cursor, namespace): - """Complete callable with calltip. + """Complete callable with call-tip. :arg line: incomplete text line :type line: str diff --git a/scripts/modules/bl_console_utils/autocomplete/complete_import.py b/scripts/modules/bl_console_utils/autocomplete/complete_import.py index 46b18ede982..269ab1d7145 100644 --- a/scripts/modules/bl_console_utils/autocomplete/complete_import.py +++ b/scripts/modules/bl_console_utils/autocomplete/complete_import.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2009 Fernando Perez, www.stani.be +# Copyright (c) 2009 Fernando Perez, https://www.stani.be # Original copyright (see doc-string): # **************************************************************************** diff --git a/scripts/modules/bl_console_utils/autocomplete/complete_namespace.py b/scripts/modules/bl_console_utils/autocomplete/complete_namespace.py index a6b6ba62358..cde40f5e9b1 100644 --- a/scripts/modules/bl_console_utils/autocomplete/complete_namespace.py +++ b/scripts/modules/bl_console_utils/autocomplete/complete_namespace.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2009 www.stani.be +# Copyright (c) 2009 https://www.stani.be """Autocomplete with the standard library""" diff --git a/scripts/modules/bl_console_utils/autocomplete/intellisense.py b/scripts/modules/bl_console_utils/autocomplete/intellisense.py index 169eb7bf8d2..e819b86eb2d 100644 --- a/scripts/modules/bl_console_utils/autocomplete/intellisense.py +++ b/scripts/modules/bl_console_utils/autocomplete/intellisense.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2009 www.stani.be +# Copyright (c) 2009 https://www.stani.be """This module provides intellisense features such as: diff --git a/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/scripts/modules/bl_i18n_utils/bl_extract_messages.py index e522a001251..48b7d8f7cfb 100644 --- a/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -1105,7 +1105,7 @@ def dump_addon_messages(module_name, do_checks, settings): dump_rna_messages(msgs, reports, settings) print("C") - # Now disable our addon, and rescan RNA. + # Now disable our addon, and re-scan RNA. utils.enable_addons(addons={module_name}, disable=True) print("D") reports["check_ctxt"] = minus_check_ctxt diff --git a/scripts/modules/bl_i18n_utils/settings.py b/scripts/modules/bl_i18n_utils/settings.py index cf2bfc04b1c..1947636e976 100644 --- a/scripts/modules/bl_i18n_utils/settings.py +++ b/scripts/modules/bl_i18n_utils/settings.py @@ -26,13 +26,13 @@ except ModuleNotFoundError: # The languages defined in Blender. LANGUAGES_CATEGORIES = ( - # Min completeness level, UI english label. + # Min completeness level, UI English label. (0.95, "Complete"), (0.33, "In Progress"), (-1.0, "Starting"), ) LANGUAGES = ( - # ID, UI english label, ISO code. + # ID, UI English label, ISO code. (0, "Automatic (Automatic)", "DEFAULT"), (1, "English (English)", "en_US"), (2, "Japanese (日本語)", "ja_JP"), @@ -195,8 +195,8 @@ PYGETTEXT_CONTEXTS = "#define\\s+(BLT_I18NCONTEXT_[A-Z_0-9]+)\\s+\"([^\"]*)\"" # autopep8: off # Keywords' regex. -# XXX Most unfortunately, we can't use named backreferences inside character sets, -# which makes the regexes even more twisty... :/ +# XXX Most unfortunately, we can't use named back-references inside character sets, +# which makes the REGEXES even more twisty... :/ _str_base = ( # Match void string "(?P<{_}1>[\"'])(?P={_}1)" # Get opening quote (' or "), and closing immediately. @@ -258,7 +258,7 @@ PYGETTEXT_KEYWORDS = (() + tuple(("{}\\((?:[^,]+,){{2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it) for it in ("modifier_subpanel_register", "gpencil_modifier_subpanel_register")) + - # Node socket declarations: contextless names + # Node socket declarations: context-less names. tuple((r"\.{}\(\s*" + _msg_re + r"(?:,[^),]+)*\s*\)" r"(?![^;]*\.translation_context\()").format(it) for it in ("add_input", "add_output")) + diff --git a/scripts/modules/bl_i18n_utils/utils.py b/scripts/modules/bl_i18n_utils/utils.py index e00f4da545a..4faa78ed681 100644 --- a/scripts/modules/bl_i18n_utils/utils.py +++ b/scripts/modules/bl_i18n_utils/utils.py @@ -133,9 +133,9 @@ def find_best_isocode_matches(uid, iso_codes): def get_po_files_from_dir(root_dir, langs=set()): """ - Yield tuples (uid, po_path) of translations for each po file found in the given dir, which should be either - a dir containing po files using language uid's as names (e.g. fr.po, es_ES.po, etc.), or - a dir containing dirs which names are language uids, and containing po files of the same names. + Yield tuples (uid, po_path) of translations for each po file found in the given directory, which should be either + a directory containing po files using language uid's as names (e.g. fr.po, es_ES.po, etc.), or + a directory containing directories which names are language uids, and containing po files of the same names. """ found_uids = set() for p in os.listdir(root_dir): @@ -324,12 +324,12 @@ class I18nMessage: sources = property(_get_sources, _set_sources) def _get_is_tooltip(self): - # XXX For now, we assume that all messages > 30 chars are tooltips! + # XXX For now, we assume that all messages > 30 chars are tool-tips! return len(self.msgid) > 30 is_tooltip = property(_get_is_tooltip) def copy(self): - # Deepcopy everything but the settings! + # Deep-copy everything but the settings! return self.__class__(msgctxt_lines=self.msgctxt_lines[:], msgid_lines=self.msgid_lines[:], msgstr_lines=self.msgstr_lines[:], comment_lines=self.comment_lines[:], is_commented=self.is_commented, is_fuzzy=self.is_fuzzy, settings=self.settings) @@ -345,7 +345,7 @@ class I18nMessage: lns = text.splitlines() return [l + "\n" for l in lns[:-1]] + lns[-1:] - # We do not need the full power of textwrap... We just split first at escaped new lines, then into each line + # We do not need the full power of text-wrap... We just split first at escaped new lines, then into each line # if needed... No word splitting, nor fancy spaces handling! def _wrap(text, max_len, init_len): if len(text) + init_len < max_len: diff --git a/scripts/modules/bl_i18n_utils/utils_languages_menu.py b/scripts/modules/bl_i18n_utils/utils_languages_menu.py index 00b9f9a39fc..89b411d3696 100755 --- a/scripts/modules/bl_i18n_utils/utils_languages_menu.py +++ b/scripts/modules/bl_i18n_utils/utils_languages_menu.py @@ -22,7 +22,7 @@ FLAG_MESSAGES = { def gen_menu_file(stats, settings): # Generate languages file content used by Blender's i18n system. - # First, match all entries in LANGUAGES to a lang in stats, if possible! + # First, match all entries in LANGUAGES to a `lang` in stats, if possible! # Returns a iterable of text lines. tmp = [] for uid_num, label, uid in settings.LANGUAGES: diff --git a/scripts/modules/bl_i18n_utils/utils_rtl.py b/scripts/modules/bl_i18n_utils/utils_rtl.py index 5ef912f8d97..f46c8600530 100755 --- a/scripts/modules/bl_i18n_utils/utils_rtl.py +++ b/scripts/modules/bl_i18n_utils/utils_rtl.py @@ -128,7 +128,7 @@ def protect_format_seq(msg): def log2vis(msgs, settings): """ Globally mimics deprecated fribidi_log2vis. - msgs should be an iterable of messages to rtl-process. + msgs should be an iterable of messages to RTL-process. """ fbd = ctypes.CDLL(settings.FRIBIDI_LIB) diff --git a/scripts/modules/bl_i18n_utils/utils_spell_check.py b/scripts/modules/bl_i18n_utils/utils_spell_check.py index c85ae45a4d1..da256ad05ea 100644 --- a/scripts/modules/bl_i18n_utils/utils_spell_check.py +++ b/scripts/modules/bl_i18n_utils/utils_spell_check.py @@ -608,7 +608,7 @@ class SpellChecker: "freestyle", "enum", "enums", "gizmogroup", - "gon", "gons", # N-Gon(s) + "gon", "gons", # N-GON(s) "gpencil", "idcol", "keyframe", "keyframes", "keyframing", "keyframed", @@ -786,7 +786,7 @@ class SpellChecker: "rgb", "rgba", "ris", "rhs", - "rpp", # Eevee ray-tracing? + "rpp", # EEVEE ray-tracing? "rv", "sdf", "sdl", @@ -816,7 +816,7 @@ class SpellChecker: "bpy", "bvh", "dbvt", - "dop", # BLI K-Dop BVH + "dop", # BLI K-DOP BVH "ik", "nla", "py", diff --git a/scripts/modules/bpy_extras/anim_utils.py b/scripts/modules/bpy_extras/anim_utils.py index 35927ebc402..d0aab8edd3d 100644 --- a/scripts/modules/bpy_extras/anim_utils.py +++ b/scripts/modules/bpy_extras/anim_utils.py @@ -364,7 +364,7 @@ def bake_action_iter( while obj.constraints: obj.constraints.remove(obj.constraints[0]) - # Create compatible eulers, quats. + # Create compatible euler & quaternion rotations. euler_prev = None quat_prev = None diff --git a/scripts/modules/bpy_extras/wm_utils/progress_report.py b/scripts/modules/bpy_extras/wm_utils/progress_report.py index e673746940f..2ea63a37b4c 100644 --- a/scripts/modules/bpy_extras/wm_utils/progress_report.py +++ b/scripts/modules/bpy_extras/wm_utils/progress_report.py @@ -11,13 +11,13 @@ class ProgressReport: This object can be used as a context manager. - It supports multiple levels of 'substeps' - you shall always enter at least one substep (because level 0 + It supports multiple levels of 'sub-steps' - you shall always enter at least one sub-step (because level 0 has only one single step, representing the whole 'area' of the progress stuff). - You should give the expected number of substeps each time you enter a new one (you may then step more or less then + You should give the expected number of sub-steps each time you enter a new one (you may then step more or less then given number, but this will give incoherent progression). - Leaving a substep automatically steps by one the parent level. + Leaving a sub-step automatically steps by one the parent level. with ProgressReport() as progress: # Not giving a WindowManager here will default to console printing. progress.enter_substeps(10) @@ -110,7 +110,7 @@ class ProgressReportSubstep: Its exit method always ensure ProgressReport is back on 'level' it was before entering this context. This means it is especially useful to ensure a coherent behavior around code that could return/continue/break - from many places, without having to bother to explicitly leave substep in each and every possible place! + from many places, without having to bother to explicitly leave sub-step in each and every possible place! with ProgressReport() as progress: # Not giving a WindowManager here will default to console printing. with ProgressReportSubstep(progress, 10, final_msg="Finished!") as subprogress1: @@ -122,7 +122,7 @@ class ProgressReportSubstep: __slots__ = ("progress", "nbr", "msg", "final_msg", "level") def __init__(self, progress, nbr, msg="", final_msg=""): - # Allows to generate a subprogress context handler from another one. + # Allows to generate a sub-progress context handler from another one. progress = getattr(progress, "progress", progress) self.progress = progress diff --git a/scripts/modules/bpy_types.py b/scripts/modules/bpy_types.py index 6d4042905ab..950a7a856fc 100644 --- a/scripts/modules/bpy_types.py +++ b/scripts/modules/bpy_types.py @@ -973,7 +973,7 @@ class _GenericUI: for func in draw_ls._draw_funcs: # Begin 'owner_id' filter. - # Exclude Import/Export menus from this filtering (io addons should always show there) + # Exclude Import/Export menus from this filtering (IO add-ons should always show there). if not getattr(self, "bl_owner_use_filter", True): pass elif owner_names is not None: diff --git a/scripts/modules/console_python.py b/scripts/modules/console_python.py index bb1cc09c325..0c7c9609a51 100644 --- a/scripts/modules/console_python.py +++ b/scripts/modules/console_python.py @@ -298,7 +298,7 @@ def copy_as_script(context): text = line.body type = line.type - if type == 'INFO': # ignore autocomp. + if type == 'INFO': # Ignore auto-completion. continue if type == 'INPUT': if text.startswith(PROMPT): diff --git a/scripts/modules/nodeitems_utils.py b/scripts/modules/nodeitems_utils.py index 801f9ae9978..a315adf417a 100644 --- a/scripts/modules/nodeitems_utils.py +++ b/scripts/modules/nodeitems_utils.py @@ -118,7 +118,7 @@ def register_node_categories(identifier, cat_list): if cat.poll(context): layout.menu("NODE_MT_category_%s" % cat.identifier) - # stores: (categories list, menu draw function, submenu types) + # Stores: (categories list, menu draw function, sub-menu types). _node_categories[identifier] = (cat_list, draw_add_menu, menu_types) diff --git a/scripts/modules/rna_prop_ui.py b/scripts/modules/rna_prop_ui.py index 6c742b05302..843948eef43 100644 --- a/scripts/modules/rna_prop_ui.py +++ b/scripts/modules/rna_prop_ui.py @@ -194,7 +194,7 @@ def draw(layout, context, context_member, property_type, *, use_edit=True): operator_row.alignment = 'RIGHT' # Do not allow editing of overridden properties (we cannot use a poll function - # of the operators here since they's have no access to the specific property). + # of the operators here since they have no access to the specific property). operator_row.enabled = not (is_lib_override and key in rna_item.id_data.override_library.reference) if use_edit: diff --git a/scripts/modules/rna_xml.py b/scripts/modules/rna_xml.py index 0544c55e65f..18641d1530d 100644 --- a/scripts/modules/rna_xml.py +++ b/scripts/modules/rna_xml.py @@ -106,7 +106,7 @@ def rna2xml( if issubclass(value_type, skip_classes): return - # XXX, fixme, pointcache has eternal nested pointer to itself. + # XXX, FIXME, point-cache has eternal nested pointer to itself. if value == parent: return diff --git a/scripts/presets/keyconfig/keymap_data/blender_default.py b/scripts/presets/keyconfig/keymap_data/blender_default.py index 15c91ee3506..e06bb006c15 100644 --- a/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -267,7 +267,7 @@ def any_except(*args): # ------------------------------------------------------------------------------ -# Keymap Item Wrappers +# Key-map Item Wrappers def op_menu(menu, kmi_args): return ("wm.call_menu", kmi_args, {"properties": [("name", menu)]}) @@ -918,7 +918,7 @@ def km_view2d(_params): ) items.extend([ - # Scrollbars + # Scroll-bars. ("view2d.scroller_activate", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None), ("view2d.scroller_activate", {"type": 'MIDDLEMOUSE', "value": 'PRESS'}, None), # Pan/scroll @@ -960,7 +960,7 @@ def km_view2d_buttons_list(_params): ) items.extend([ - # Scrollbars + # Scroll-bars. ("view2d.scroller_activate", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None), ("view2d.scroller_activate", {"type": 'MIDDLEMOUSE', "value": 'PRESS'}, None), # Pan scroll @@ -5717,7 +5717,7 @@ def km_edit_armature(params): return keymap -# Metaball edit mode. +# Meta-ball edit mode. def km_edit_metaball(params): items = [] keymap = ( @@ -6743,7 +6743,7 @@ def km_generic_gizmo_tweak_modal_map(_params): # ------------------------------------------------------------------------------ -# Popup Keymaps +# Popup Key-maps def km_popup_toolbar(_params): return ( @@ -8472,7 +8472,7 @@ def generate_keymaps(params=None): km_generic_gizmo_select(params), km_generic_gizmo_tweak_modal_map(params), - # Pop-Up Keymaps. + # Pop-Up Key-maps. km_popup_toolbar(params), # Tool System. diff --git a/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py b/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py index 7998ee77846..aaf9fe2ad6f 100644 --- a/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py +++ b/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py @@ -315,7 +315,7 @@ def km_view2d(params): ) items.extend([ - # Scrollbars + # Scroll-bars. ("view2d.scroller_activate", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None), ("view2d.scroller_activate", {"type": 'MIDDLEMOUSE', "value": 'PRESS'}, None), # Pan/scroll @@ -359,7 +359,7 @@ def km_view2d_buttons_list(params): ) items.extend([ - # Scrollbars + # Scroll-bars. ("view2d.scroller_activate", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None), ("view2d.scroller_activate", {"type": 'MIDDLEMOUSE', "value": 'PRESS'}, None), # Pan scroll @@ -3673,7 +3673,8 @@ def km_sculpt(params): ("wm.context_toggle", {"type": 'L', "value": 'PRESS'}, {"properties": [("data_path", 'tool_settings.sculpt.brush.use_smooth_stroke')]}), # Tools - # This is the only mode without an Annotate shortcut. The multires shortcuts took precedence instead. + # This is the only mode without an Annotate shortcut. + # The multi-resolution shortcuts took precedence instead. op_tool_cycle("builtin.box_mask", {"type": 'Q', "value": 'PRESS'}), op_tool_cycle("builtin.move", {"type": 'W', "value": 'PRESS'}), op_tool_cycle("builtin.rotate", {"type": 'E', "value": 'PRESS'}), @@ -4268,7 +4269,7 @@ def km_transform_modal_map(_params): # ------------------------------------------------------------------------------ -# Tool System Keymaps +# Tool System Key-maps # # Named are auto-generated based on the tool name and it's toolbar. diff --git a/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py b/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py index afdca478c4c..14e576626ad 100644 --- a/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py +++ b/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py @@ -17,7 +17,7 @@ def update_factory_startup_screens(): space = area.spaces.active space.context = 'TOOL' elif area.type == 'DOPESHEET_EDITOR': - # Open sidebar in Dopesheet. + # Open sidebar in Dope-sheet. space = area.spaces.active space.show_region_ui = True diff --git a/scripts/startup/bl_operators/anim.py b/scripts/startup/bl_operators/anim.py index a6ffb272b29..ebf0b390c60 100644 --- a/scripts/startup/bl_operators/anim.py +++ b/scripts/startup/bl_operators/anim.py @@ -89,13 +89,13 @@ class ANIM_OT_keying_set_export(Operator): if ksp.id in id_to_paths_cache: continue - # - idtype_list is used to get the list of id-datablocks from - # bpy.data.* since this info isn't available elsewhere - # - id.bl_rna.name gives a name suitable for UI, + # - `idtype_list` is used to get the list of ID-data-blocks from + # `bpy.data.*` since this info isn't available elsewhere. + # - `id.bl_rna.name` gives a name suitable for UI, # with a capitalized first letter, but we need - # the plural form that's all lower case + # the plural form that's all lower case. # - special handling is needed for "nested" ID-blocks - # (e.g. nodetree in Material) + # (e.g. node-tree in Material). if ksp.id.bl_rna.identifier.startswith("ShaderNodeTree"): # Find material or light using this node tree... id_bpy_path = "bpy.data.nodes[\"%s\"]" @@ -120,7 +120,7 @@ class ANIM_OT_keying_set_export(Operator): tip_("Could not find material or light using Shader Node Tree - %s") % (ksp.id)) elif ksp.id.bl_rna.identifier.startswith("CompositorNodeTree"): - # Find compositor nodetree using this node tree... + # Find compositor node-tree using this node tree. for scene in bpy.data.scenes: if scene.node_tree == ksp.id: id_bpy_path = "bpy.data.scenes[\"%s\"].node_tree" % (scene.name) diff --git a/scripts/startup/bl_operators/mesh.py b/scripts/startup/bl_operators/mesh.py index 03535f5a5bd..ee8296cbc2a 100644 --- a/scripts/startup/bl_operators/mesh.py +++ b/scripts/startup/bl_operators/mesh.py @@ -85,7 +85,7 @@ class MeshMirrorUV(Operator): puvs_cpy[i] = tuple(uv.copy() for uv in puvs[i]) puvsel[i] = (False not in (uv.select for uv in uv_loops[lstart:lend])) - # Vert idx of the poly. + # Vert index of the poly. vidxs[i] = tuple(l.vertex_index for l in loops[lstart:lend]) pcents[i] = p.center # Preparing next step finding matching polys. diff --git a/scripts/startup/bl_operators/object_quick_effects.py b/scripts/startup/bl_operators/object_quick_effects.py index 44592b6f7c7..8bde434a6ca 100644 --- a/scripts/startup/bl_operators/object_quick_effects.py +++ b/scripts/startup/bl_operators/object_quick_effects.py @@ -493,7 +493,7 @@ class QuickSmoke(ObjectModeOperator, Operator): # Setup material - # Cycles and Eevee + # Cycles and EEVEE. bpy.ops.object.material_slot_add() mat = bpy.data.materials.new("Smoke Domain Material") diff --git a/scripts/startup/bl_operators/userpref.py b/scripts/startup/bl_operators/userpref.py index adffa1193ee..58827bb1a43 100644 --- a/scripts/startup/bl_operators/userpref.py +++ b/scripts/startup/bl_operators/userpref.py @@ -936,7 +936,7 @@ class PREFERENCES_OT_app_template_install(Operator): return {'CANCELLED'} else: - # Only support installing zipfiles + # Only support installing zip-files. self.report({'WARNING'}, tip_("Expected a zip-file %r\n") % filepath) return {'CANCELLED'} diff --git a/scripts/startup/bl_operators/wm.py b/scripts/startup/bl_operators/wm.py index 4c7138231e9..71a0fa7587f 100644 --- a/scripts/startup/bl_operators/wm.py +++ b/scripts/startup/bl_operators/wm.py @@ -2273,7 +2273,7 @@ class WM_OT_owner_disable(Operator): class WM_OT_tool_set_by_id(Operator): - """Set the tool by name (for keymaps)""" + """Set the tool by name (for key-maps)""" bl_idname = "wm.tool_set_by_id" bl_label = "Set Tool by Name" @@ -2319,7 +2319,7 @@ class WM_OT_tool_set_by_id(Operator): class WM_OT_tool_set_by_index(Operator): - """Set the tool by index (for keymaps)""" + """Set the tool by index (for key-maps)""" bl_idname = "wm.tool_set_by_index" bl_label = "Set Tool by Index" index: IntProperty( diff --git a/scripts/startup/bl_ui/properties_grease_pencil_common.py b/scripts/startup/bl_ui/properties_grease_pencil_common.py index 01a3a5ec7aa..8c64e6675ed 100644 --- a/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -517,7 +517,7 @@ class GreasePencilMaterialsPanel: row.template_list("GPENCIL_UL_matslots", "", ob, "material_slots", ob, "active_material_index", rows=rows) - # if topbar popover and brush pinned, disable + # if top-bar popover and brush pinned, disable. if is_view3d and brush is not None: gp_settings = brush.gpencil_settings if gp_settings.use_material_pin: diff --git a/scripts/startup/bl_ui/properties_physics_fluid.py b/scripts/startup/bl_ui/properties_physics_fluid.py index eeb09c7bfa1..3a759e98ded 100644 --- a/scripts/startup/bl_ui/properties_physics_fluid.py +++ b/scripts/startup/bl_ui/properties_physics_fluid.py @@ -878,7 +878,7 @@ class PHYSICS_PT_mesh(PhysicButtonsPanel, Panel): col.prop(domain, "mesh_concave_upper", text="Concavity Upper") col.prop(domain, "mesh_concave_lower", text="Lower") - # TODO (sebbas): for now just interpolate any upres grids, ie not sampling highres grids + # TODO(@sebbas): for now just interpolate any up-resolution grids, ie not sampling high-resolution grids # col.prop(domain, "highres_sampling", text="Flow Sampling:") if domain.cache_type == 'MODULAR': diff --git a/scripts/startup/bl_ui/properties_physics_rigidbody.py b/scripts/startup/bl_ui/properties_physics_rigidbody.py index bf34688db18..3364e27d4d1 100644 --- a/scripts/startup/bl_ui/properties_physics_rigidbody.py +++ b/scripts/startup/bl_ui/properties_physics_rigidbody.py @@ -328,7 +328,7 @@ class PHYSICS_PT_rigid_body_dynamics_deactivation(PHYSICS_PT_rigidbody_panel, Pa col = flow.column() col.prop(rbo, "deactivate_linear_velocity", text="Velocity Linear") col.prop(rbo, "deactivate_angular_velocity", text="Angular") - # TODO: other params such as time? + # TODO: other parameters such as time? classes = ( diff --git a/scripts/startup/bl_ui/space_clip.py b/scripts/startup/bl_ui/space_clip.py index d8271ce18ce..fee563b7cef 100644 --- a/scripts/startup/bl_ui/space_clip.py +++ b/scripts/startup/bl_ui/space_clip.py @@ -1900,7 +1900,7 @@ class CLIP_MT_view_pie(Menu): def poll(cls, context): space = context.space_data - # View operators are not yet implemented in Dopesheet mode. + # View operators are not yet implemented in Dope-sheet mode. return space.view != 'DOPESHEET' def draw(self, context): diff --git a/scripts/startup/bl_ui/space_dopesheet.py b/scripts/startup/bl_ui/space_dopesheet.py index b2bf5a3d636..d6390dc47ae 100644 --- a/scripts/startup/bl_ui/space_dopesheet.py +++ b/scripts/startup/bl_ui/space_dopesheet.py @@ -39,7 +39,7 @@ def dopesheet_filter(layout, context): row.prop(dopesheet, "show_only_errors", text="") ####################################### -# Dopesheet Filtering Popovers +# Dope-sheet Filtering Popovers # Generic Layout - Used as base for filtering popovers used in all animation editors # Used for DopeSheet, NLA, and Graph Editors @@ -62,7 +62,7 @@ class DopesheetFilterPopoverBase: if is_nla: col.prop(dopesheet, "show_missing_nla", icon='NONE') - else: # graph and dopesheet editors - F-Curves and drivers only + else: # Graph and dope-sheet editors - F-Curves and drivers only. col.prop(dopesheet, "show_only_errors", icon='NONE') # Name/Membership Filters diff --git a/scripts/startup/bl_ui/space_image.py b/scripts/startup/bl_ui/space_image.py index 9a352f6382f..a6bc32ef687 100644 --- a/scripts/startup/bl_ui/space_image.py +++ b/scripts/startup/bl_ui/space_image.py @@ -1335,7 +1335,7 @@ class IMAGE_PT_uv_sculpt_brush_settings(Panel, ImagePaintPanel, UVSculptPanel): class IMAGE_PT_uv_sculpt_curve(Panel, FalloffPanel, ImagePaintPanel, UVSculptPanel): - bl_context = ".uv_sculpt" # dot on purpose (access from topbar) + bl_context = ".uv_sculpt" # Dot on purpose (access from top-bar). bl_parent_id = "IMAGE_PT_uv_sculpt_brush_settings" bl_category = "Tool" bl_label = "Falloff" @@ -1343,7 +1343,7 @@ class IMAGE_PT_uv_sculpt_curve(Panel, FalloffPanel, ImagePaintPanel, UVSculptPan class IMAGE_PT_uv_sculpt_options(Panel, ImagePaintPanel, UVSculptPanel): - bl_context = ".uv_sculpt" # dot on purpose (access from topbar) + bl_context = ".uv_sculpt" # Dot on purpose (access from top-bar). bl_category = "Tool" bl_label = "Options" diff --git a/scripts/startup/bl_ui/space_node.py b/scripts/startup/bl_ui/space_node.py index a89daacbf60..a36449d5d85 100644 --- a/scripts/startup/bl_ui/space_node.py +++ b/scripts/startup/bl_ui/space_node.py @@ -56,7 +56,7 @@ class NODE_HT_header(Header): NODE_MT_editor_menus.draw_collapsible(context, layout) - # No shader nodes for Eevee lights + # No shader nodes for EEVEE lights. if snode_id and not (context.engine == 'BLENDER_EEVEE' and ob_type == 'LIGHT'): row = layout.row() row.prop(snode_id, "use_nodes") diff --git a/scripts/startup/bl_ui/space_toolsystem_common.py b/scripts/startup/bl_ui/space_toolsystem_common.py index 32a3a221dfb..958829e2f6e 100644 --- a/scripts/startup/bl_ui/space_toolsystem_common.py +++ b/scripts/startup/bl_ui/space_toolsystem_common.py @@ -266,7 +266,7 @@ class ToolSelectPanelHelper: # so if item is still a function (e.g._defs_XXX.generate_from_brushes) # seems like we cannot expand here (have no context yet) # if we yield None here, this will risk running into duplicate tool bl_idname [in register_tool()] - # but still better than erroring out + # but still better than raising an error to the user. @staticmethod def _tools_flatten(tools): for item_parent in tools: @@ -534,7 +534,7 @@ class ToolSelectPanelHelper: def keymap_ui_hierarchy(cls, context_mode): # See: bpy_extras.keyconfig_utils - # Keymaps may be shared, don't show them twice. + # Key-maps may be shared, don't show them twice. visited = set() for context_mode_test, tools in cls.tools_all(): diff --git a/scripts/startup/bl_ui/space_topbar.py b/scripts/startup/bl_ui/space_topbar.py index 47e2c3c1ad7..c97b126731f 100644 --- a/scripts/startup/bl_ui/space_topbar.py +++ b/scripts/startup/bl_ui/space_topbar.py @@ -503,10 +503,10 @@ class TOPBAR_MT_file_export(Menu): "wm.usd_export", text="Universal Scene Description (.usd*)") if bpy.app.build_options.io_gpencil: - # Pugixml lib dependency + # PUGIXML library dependency. if bpy.app.build_options.pugixml: self.layout.operator("wm.gpencil_export_svg", text="Grease Pencil as SVG") - # Haru lib dependency + # HARU library dependency. if bpy.app.build_options.haru: self.layout.operator("wm.gpencil_export_pdf", text="Grease Pencil as PDF") diff --git a/scripts/startup/bl_ui/space_view3d.py b/scripts/startup/bl_ui/space_view3d.py index 09e1a28063b..8d0a3e6f55e 100644 --- a/scripts/startup/bl_ui/space_view3d.py +++ b/scripts/startup/bl_ui/space_view3d.py @@ -707,7 +707,7 @@ class VIEW3D_HT_header(Header): # (because internal RNA array iterator will free everything immediately...). # XXX This is an RNA internal issue, not sure how to fix it. # Note: Tried to add an accessor to get translated UI strings instead of manual call - # to pgettext_iface below, but this fails because translated enumitems + # to pgettext_iface below, but this fails because translated enum-items # are always dynamically allocated. act_mode_item = bpy.types.Object.bl_rna.properties["mode"].enum_items[object_mode] act_mode_i18n_context = bpy.types.Object.bl_rna.properties["mode"].translation_context @@ -795,7 +795,7 @@ class VIEW3D_HT_header(Header): subrow.enabled = not gpd.use_curve_edit subrow.prop_enum(tool_settings, "gpencil_selectmode_edit", text="", value='SEGMENT') - # Curve edit submode + # Curve edit sub-mode. row = layout.row(align=True) row.prop(gpd, "use_curve_edit", text="", icon='IPO_BEZIER') @@ -866,7 +866,7 @@ class VIEW3D_HT_header(Header): if object_mode == 'PAINT_GPENCIL': # FIXME: this is bad practice! - # Tool options are to be displayed in the topbar. + # Tool options are to be displayed in the top-bar. if context.workspace.tools.from_space_view3d_mode(object_mode).idname == "builtin_brush.Draw": settings = tool_settings.gpencil_sculpt.guide row = layout.row(align=True) @@ -6224,7 +6224,7 @@ class VIEW3D_PT_shading_lighting(Panel): system = prefs.system if not system.use_studio_light_edit: - sub.scale_y = 0.6 # smaller studiolight preview + sub.scale_y = 0.6 # Smaller studio-light preview. sub.template_icon_view(shading, "studio_light", scale_popup=3.0) else: sub.prop( diff --git a/scripts/startup/bl_ui/space_view3d_toolbar.py b/scripts/startup/bl_ui/space_view3d_toolbar.py index ecff396e05a..b696e1e1af3 100644 --- a/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -743,7 +743,7 @@ class VIEW3D_PT_tools_weight_gradient(Panel, View3DPaintPanel): # `bl_context = ".weightpaint"` # dot on purpose (access from top-bar) bl_label = "Falloff" bl_options = {'DEFAULT_CLOSED'} - # also dont draw as an extra panel in the sidebar (already included in the Brush settings) + # Also don't draw as an extra panel in the sidebar (already included in the Brush settings). bl_space_type = 'TOPBAR' bl_region_type = 'HEADER' @@ -1455,7 +1455,7 @@ class GreasePencilPaintPanel: if context.gpencil_data is None: return False - # Hide for tools not using bruhses + # Hide for tools not using brushes. if tool_use_brush(context) is False: return False diff --git a/scripts/templates_py/operator_file_export.py b/scripts/templates_py/operator_file_export.py index f1779593051..39118a2a3b9 100644 --- a/scripts/templates_py/operator_file_export.py +++ b/scripts/templates_py/operator_file_export.py @@ -22,7 +22,7 @@ class ExportSomeData(Operator, ExportHelper): bl_idname = "export_test.some_data" # important since its how bpy.ops.import_test.some_data is constructed bl_label = "Export Some Data" - # ExportHelper mixin class uses this + # ExportHelper mix-in class uses this. filename_ext = ".txt" filter_glob: StringProperty( diff --git a/scripts/templates_py/operator_file_import.py b/scripts/templates_py/operator_file_import.py index d6f4780961a..bcdb8e609e0 100644 --- a/scripts/templates_py/operator_file_import.py +++ b/scripts/templates_py/operator_file_import.py @@ -25,7 +25,7 @@ class ImportSomeData(Operator, ImportHelper): bl_idname = "import_test.some_data" # important since its how bpy.ops.import_test.some_data is constructed bl_label = "Import Some Data" - # ImportHelper mixin class uses this + # ImportHelper mix-in class uses this. filename_ext = ".txt" filter_glob: StringProperty( diff --git a/scripts/templates_py/operator_modal_view3d_raycast.py b/scripts/templates_py/operator_modal_view3d_raycast.py index 11595fab3d8..1db014004fe 100644 --- a/scripts/templates_py/operator_modal_view3d_raycast.py +++ b/scripts/templates_py/operator_modal_view3d_raycast.py @@ -64,7 +64,7 @@ def main(context, event): # we could do lots of stuff but for the example just select. if best_obj is not None: # for selection etc. we need the original object, - # evaluated objects are not in viewlayer + # evaluated objects are not in view-layer. best_original = best_obj.original best_original.select_set(True) context.view_layer.objects.active = best_original diff --git a/source/blender/blenkernel/BKE_constraint.h b/source/blender/blenkernel/BKE_constraint.h index f14974b5331..d475f65fa82 100644 --- a/source/blender/blenkernel/BKE_constraint.h +++ b/source/blender/blenkernel/BKE_constraint.h @@ -74,7 +74,7 @@ typedef void (*ConstraintIDFunc)(struct bConstraint *con, * structs. */ typedef struct bConstraintTypeInfo { - /* admin/ident */ + /* Admin/identity. */ /** CONSTRAINT_TYPE_### */ short type; /** size in bytes of the struct */ diff --git a/source/blender/blenkernel/BKE_fcurve.h b/source/blender/blenkernel/BKE_fcurve.h index 2f38dc6d8cf..026680e6df1 100644 --- a/source/blender/blenkernel/BKE_fcurve.h +++ b/source/blender/blenkernel/BKE_fcurve.h @@ -47,7 +47,7 @@ struct bContext; * as you'll have to edit quite a few (#FMODIFIER_NUM_TYPES) of these structs. */ typedef struct FModifierTypeInfo { - /* admin/ident */ + /* Admin/identity. */ /** #FMODIFIER_TYPE_* */ short type; /** size in bytes of the struct. */ diff --git a/source/blender/blenkernel/BKE_lib_remap.h b/source/blender/blenkernel/BKE_lib_remap.h index 242569338f7..f18d2acc974 100644 --- a/source/blender/blenkernel/BKE_lib_remap.h +++ b/source/blender/blenkernel/BKE_lib_remap.h @@ -129,12 +129,12 @@ void BKE_libblock_remap_multiple(struct Main *bmain, const int remap_flags); /** - * Bare raw remapping of IDs, with no other processing than actually updating the ID pointers. No - * usercount, direct vs indirect linked status update, depsgraph tagging, etc. + * Bare raw remapping of IDs, with no other processing than actually updating the ID pointers. + * No user-count, direct vs indirect linked status update, depsgraph tagging, etc. * * This is way more efficient than regular remapping from #BKE_libblock_remap_multiple & co, but it * implies that calling code handles all the other aspects described above. This is typically the - * case e.g. in readfile process. + * case e.g. in read-file process. * * WARNING: This call will likely leave the given BMain in invalid state in many aspects. */ void BKE_libblock_remap_multiple_raw(struct Main *bmain, diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h index 0463d28230e..1384a5fc068 100644 --- a/source/blender/blenkernel/BKE_screen.h +++ b/source/blender/blenkernel/BKE_screen.h @@ -83,7 +83,7 @@ typedef struct SpaceType { /* called when the mouse moves out of the area */ void (*deactivate)(struct ScrArea *area); - /* refresh context, called after filereads, ED_area_tag_refresh() */ + /** Refresh context, called after file-reads, #ED_area_tag_refresh(). */ void (*refresh)(const struct bContext *C, struct ScrArea *area); /* after a spacedata copy, an init should result in exact same situation */ diff --git a/source/blender/blenkernel/intern/object_dupli.cc b/source/blender/blenkernel/intern/object_dupli.cc index 8ecbec27caa..8ab9604cd25 100644 --- a/source/blender/blenkernel/intern/object_dupli.cc +++ b/source/blender/blenkernel/intern/object_dupli.cc @@ -1710,9 +1710,9 @@ static const DupliGenerator *get_dupli_generator(const DupliContext *ctx) return nullptr; } - /* Metaball objects can't create instances, but the dupli system is used to "instance" their + /* Meta-ball objects can't create instances, but the dupli system is used to "instance" their * evaluated mesh to render engines. We need to exit early to avoid recursively instancing the - * evaluated metaball mesh on metaball instances that already contribute to the basis. */ + * evaluated meta-ball mesh on meta-ball instances that already contribute to the basis. */ if (ctx->object->type == OB_MBALL && ctx->level > 0) { return nullptr; } diff --git a/source/blender/blenloader/BLO_undofile.hh b/source/blender/blenloader/BLO_undofile.hh index d4b4bf66257..3d6a175a415 100644 --- a/source/blender/blenloader/BLO_undofile.hh +++ b/source/blender/blenloader/BLO_undofile.hh @@ -83,7 +83,7 @@ void BLO_memfile_chunk_add(MemFileWriteData *mem_data, const char *buf, size_t s extern void BLO_memfile_free(MemFile *memfile); /** * Result is that 'first' is being freed. - * to keep list of memfiles consistent, 'first' is always first in list. + * To keep the #MemFile linked list of consistent, `first` is always first in list. */ extern void BLO_memfile_merge(MemFile *first, MemFile *second); /** diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.h b/source/blender/compositor/intern/COM_ExecutionGroup.h index 64c83698c51..857d1dc6e02 100644 --- a/source/blender/compositor/intern/COM_ExecutionGroup.h +++ b/source/blender/compositor/intern/COM_ExecutionGroup.h @@ -294,7 +294,7 @@ class ExecutionGroup { /** * \brief compose multiple chunks into a single chunk - * \return Memorybuffer *consolidated chunk + * \return `(Memorybuffer *)` consolidated chunk */ MemoryBuffer *construct_consolidated_memory_buffer(MemoryProxy &memory_proxy, rcti &rect); @@ -308,7 +308,7 @@ class ExecutionGroup { * \brief get all inputbuffers needed to calculate an chunk * \note all inputbuffers must be executed * \param chunk_number: the chunk to be calculated - * \return (MemoryBuffer **) the inputbuffers + * \return `(MemoryBuffer **)` the input-buffers. */ MemoryBuffer **get_input_buffers_opencl(int chunk_number); diff --git a/source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl b/source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl index 4d1be1f23ad..3fff9f02d88 100644 --- a/source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl @@ -91,7 +91,7 @@ float ambient_occlusion_eval(vec3 normal, const float inverted, const float sample_count); -/* WORKAROUND: Included later with libs. This is because we are mixing include systems. */ +/* WORKAROUND: Included later with libraries. This is because we are mixing include systems. */ vec3 safe_normalize(vec3 N); float fast_sqrt(float a); vec3 cameraVec(vec3 P); diff --git a/source/blender/draw/engines/eevee_next/eevee_lut.hh b/source/blender/draw/engines/eevee_next/eevee_lut.hh index 0f29e806123..ca4c582c643 100644 --- a/source/blender/draw/engines/eevee_next/eevee_lut.hh +++ b/source/blender/draw/engines/eevee_next/eevee_lut.hh @@ -18,7 +18,7 @@ extern const float ltc_mat_ggx[64][64][4]; extern const float ltc_mag_ggx[64][64][2]; /* Precomputed Disk integral for different elevation angles and solid angle. */ extern const float ltc_disk_integral[64][64][1]; -/* Precomputed integrated split fresnel term of the GGX brdf. */ +/* Precomputed integrated split fresnel term of the GGX BRDF. */ extern const float bsdf_split_sum_ggx[64][64][2]; /* Precomputed reflectance and transmission of glass material. */ extern const float btdf_split_sum_ggx[16][64][64][2]; diff --git a/source/blender/draw/engines/eevee_next/eevee_precompute.hh b/source/blender/draw/engines/eevee_next/eevee_precompute.hh index 44f344d2dab..73f66e7537b 100644 --- a/source/blender/draw/engines/eevee_next/eevee_precompute.hh +++ b/source/blender/draw/engines/eevee_next/eevee_precompute.hh @@ -92,7 +92,7 @@ class Precompute { /** * Write a the content of a texture as a C++ header file array. - * The content is to be copied to `eevee_lut.cc` and formated with `make format`. + * The content is to be copied to `eevee_lut.cc` and formatted with `make format`. */ template static void write_to_header(StringRefNull name, @@ -167,4 +167,4 @@ class Precompute { } }; -} // namespace blender::eevee \ No newline at end of file +} // namespace blender::eevee diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_zbin_comp.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_zbin_comp.glsl index 47935b8ab51..a5eabc4ea03 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_zbin_comp.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_zbin_comp.glsl @@ -3,7 +3,7 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ /** - * Create the Zbins from Z-sorted lights. + * Create the Z-bins from Z-sorted lights. * Perform min-max operation in LDS memory for speed. * For this reason, we only dispatch 1 thread group. */ @@ -52,7 +52,7 @@ void main() } barrier(); - /* Write result to zbins buffer. Pack min & max into 1 uint. */ + /* Write result to Z-bins buffer. Pack min & max into 1 `uint`. */ for (uint i = 0u, l = zbin_local; i < zbin_iter; i++, l++) { out_zbin_buf[l] = (zbin_max[l] << 16u) | (zbin_min[l] & 0xFFFFu); } diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_lightprobe_eval_lib.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_lightprobe_eval_lib.glsl index 157c4bbffab..8be9bb9786f 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_lightprobe_eval_lib.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_lightprobe_eval_lib.glsl @@ -24,7 +24,7 @@ ivec3 lightprobe_irradiance_grid_brick_coord(vec3 lP) } /** - * Return the local coordinated of the shading point inside the brick in unormalized coordinate. + * Return the local coordinated of the shading point inside the brick in unnormalized coordinate. */ vec3 lightprobe_irradiance_grid_brick_local_coord(IrradianceGridData grid_data, vec3 lP, diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_nodetree_lib.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_nodetree_lib.glsl index 55ea97a0529..d3b99c8e5dd 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_nodetree_lib.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_nodetree_lib.glsl @@ -209,7 +209,7 @@ Closure closure_eval(ClosureDiffuse diffuse, return Closure(0); } -/* Noop since we are sampling closures. */ +/* NOP since we are sampling closures. */ Closure closure_add(Closure cl1, Closure cl2) { return Closure(0); @@ -551,7 +551,7 @@ vec4 attr_load_color_post(vec4 attr) return attr; } -#else /* Noop for any other surface. */ +#else /* NOP for any other surface. */ float attr_load_temperature_post(float attr) { diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_page_defrag_comp.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_page_defrag_comp.glsl index 62e1242a4e8..8886e067982 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_page_defrag_comp.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_page_defrag_comp.glsl @@ -14,7 +14,7 @@ * `[--xxxxx---------]` * After page free step: 2 cached pages were removed (r), 3 pages were inserted in the cache (i). * `[--xrxrxiii------]` - * After page defrag step: The buffer is compressed into only 6 pages. + * After page defragment step: The buffer is compressed into only 6 pages. * `[----xxxxxx------]` */ @@ -77,11 +77,11 @@ void main() find_first_valid(src, end); } - /* Defrag page in "old" range. */ + /* Defragment page in "old" range. */ bool is_empty = (src == end); if (!is_empty) { /* `page_cached_end` refers to the next empty slot. - * Decrement by one to refer to the first slot we can defrag. */ + * Decrement by one to refer to the first slot we can defragment. */ for (uint dst = end - 1; dst > src; dst--) { /* Find hole. */ if (pages_cached_buf[dst % max_page].x != uint(-1)) { diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_page_ops_lib.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_page_ops_lib.glsl index f4414383785..51513ee5437 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_page_ops_lib.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_page_ops_lib.glsl @@ -70,7 +70,7 @@ void shadow_page_cache_append(inout ShadowTileData tile, uint tile_index) { assert(tile.is_allocated); - /* The page_cached_next is also wrapped in the defrag phase to avoid unsigned overflow. */ + /* The page_cached_next is also wrapped in the defragment phase to avoid unsigned overflow. */ uint index = atomicAdd(pages_infos_buf.page_cached_next, 1u) % uint(SHADOW_MAX_PAGE); /* Insert in heap. */ pages_cached_buf[index] = uvec2(shadow_page_pack(tile.page), tile_index); @@ -93,7 +93,7 @@ void shadow_page_cache_remove(inout ShadowTileData tile) tile.cache_index = uint(-1); tile.is_cached = false; tile.is_allocated = true; - /* Remove from heap. Leaves hole in the buffer. This is handled by the defrag phase. */ + /* Remove from heap. Leaves hole in the buffer. This is handled by the defragment phase. */ pages_cached_buf[index] = uvec2(-1); } diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_tag_update_comp.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_tag_update_comp.glsl index 593fe96ff0c..b4edf058b63 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_tag_update_comp.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_tag_update_comp.glsl @@ -7,8 +7,8 @@ * * Any updated shadow caster needs to tag the shadow map tiles it was in and is now into. * This is done in 2 pass of this same shader. One for past object bounds and one for new object - * bounds. The bounding boxes are roughly software rasterized (just a plain rect) in order to tag - * the appropriate tiles. + * bounds. The bounding boxes are roughly software rasterized (just a plain rectangle) in order to + * tag the appropriate tiles. */ #pragma BLENDER_REQUIRE(common_intersect_lib.glsl) diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_tilemap_init_comp.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_tilemap_init_comp.glsl index 8f9dd5f1c41..541ce192f5e 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_tilemap_init_comp.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_shadow_tilemap_init_comp.glsl @@ -43,7 +43,7 @@ void main() int clip_index = tilemap.clip_data_index; if (clip_index == -1) { - /* Noop. This is the case for unused tile-maps that are getting pushed to the free heap. */ + /* NOP. This is the case for unused tile-maps that are getting pushed to the free heap. */ } else if (tilemap.projection_type != SHADOW_PROJECTION_CUBEFACE) { ShadowTileMapClip clip_data = tilemaps_clip_buf[clip_index]; diff --git a/source/blender/draw/engines/overlay/shaders/overlay_depth_only_frag.glsl b/source/blender/draw/engines/overlay/shaders/overlay_depth_only_frag.glsl index b9881649154..36976609fbe 100644 --- a/source/blender/draw/engines/overlay/shaders/overlay_depth_only_frag.glsl +++ b/source/blender/draw/engines/overlay/shaders/overlay_depth_only_frag.glsl @@ -9,6 +9,6 @@ void main() /* No color output, only depth (line below is implicit). */ // gl_FragDepth = gl_FragCoord.z; - /* This is optimized to noop in the non select case. */ + /* This is optimized to NOP in the non select case. */ select_id_output(select_id); } diff --git a/source/blender/editors/transform/transform_data.hh b/source/blender/editors/transform/transform_data.hh index 83bdb66b65c..75dab5e271e 100644 --- a/source/blender/editors/transform/transform_data.hh +++ b/source/blender/editors/transform/transform_data.hh @@ -79,9 +79,11 @@ struct TransDataExtension { /** Use instead of #TransData.smtx, * It is the same but without the #Bone.bone_mat, see #TD_PBONE_LOCAL_MTX_C. */ float l_smtx[3][3]; - /** The rotscale matrix of pose bone, to allow using snap-align in translation mode, - * when #TransData.mtx is the loc pose bone matrix (and hence can't be used to apply - * rotation in some cases, namely when a bone is in "No-Local" or "Hinge" mode)... */ + /** + * The rotation & scale matrix of pose bone, to allow using snap-align in translation mode, + * when #TransData.mtx is the location pose bone matrix (and hence can't be used to apply + * rotation in some cases, namely when a bone is in "No-Local" or "Hinge" mode). + */ float r_mtx[3][3]; /** Inverse of previous one. */ float r_smtx[3][3]; diff --git a/source/blender/gpu/GPU_texture.h b/source/blender/gpu/GPU_texture.h index 03e3395f429..feba96bed85 100644 --- a/source/blender/gpu/GPU_texture.h +++ b/source/blender/gpu/GPU_texture.h @@ -547,7 +547,7 @@ typedef enum eGPUTextureUsage { /* Whether the texture needs to be read from by the CPU. */ GPU_TEXTURE_USAGE_HOST_READ = (1 << 4), /* When used, the texture will not have any backing storage and can solely exist as a virtual - * framebuffer attachment. */ + * frame-buffer attachment. */ GPU_TEXTURE_USAGE_MEMORYLESS = (1 << 5), /* Create a texture whose usage cannot be defined prematurely. * This is unoptimized and should not be used. */ diff --git a/source/blender/gpu/metal/mtl_shader.mm b/source/blender/gpu/metal/mtl_shader.mm index fd390820bb4..bf3ce42126a 100644 --- a/source/blender/gpu/metal/mtl_shader.mm +++ b/source/blender/gpu/metal/mtl_shader.mm @@ -295,7 +295,7 @@ bool MTLShader::finalize(const shader::ShaderCreateInfo *info) #if defined(MAC_OS_X_VERSION_11_0) && __MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_11_0 if (@available(macOS 11.00, *)) { /* Raster order groups for tile data in struct require Metal 2.3. - * Retianing Metal 2.2. for old shaders to maintain backwards + * Retaining Metal 2.2. for old shaders to maintain backwards * compatibility for existing features. */ if (info->fragment_tile_inputs_.size() > 0) { options.languageVersion = MTLLanguageVersion2_3; diff --git a/source/blender/nodes/intern/discover_nodes.py b/source/blender/nodes/intern/discover_nodes.py index 9aa03c264be..ed7d404a790 100644 --- a/source/blender/nodes/intern/discover_nodes.py +++ b/source/blender/nodes/intern/discover_nodes.py @@ -61,7 +61,7 @@ func_lines.append(f"void {function_to_generate}();") func_lines.append(f"void {function_to_generate}()") func_lines.append("{") -# Use a single regular expression to search for opening namespaces, closing namespaces +# Use a single regular expression to search for opening name-spaces, closing name-spaces # and macro invocations. This makes it easy to iterate over the matches in order. re_namespace_begin = r"^namespace ([\w:]+) \{" re_namespace_end = r"^\} // namespace ([\w:]+)" @@ -74,24 +74,24 @@ for path in source_cc_files: with open(path, "r", encoding="utf-8") as fh: code = fh.read() - # Keeps track of the current namespace we're in. + # Keeps track of the current name-space we're in. namespace_parts = [] for match in re_all_compiled.finditer(code): if entered_namespace := match.group(2): - # Enter a (nested) namespace. + # Enter a (nested) name-space. namespace_parts += entered_namespace.split("::") elif exited_namespace := match.group(4): - # Exit a (nested) namespace. + # Exit a (nested) name-space. del namespace_parts[-len(exited_namespace.split("::")):] elif function_name := match.group(6): - # Macro invocation in the current namespace. + # Macro invocation in the current name-space. namespace_str = "::".join(namespace_parts) # Add suffix so that this refers to the function created by the macro. auto_run_name = function_name + discover_suffix - # Declare either outside of any named namespace or in a (nested) namespace. - # Can't declare it in an anonymous namespace because that would make the + # Declare either outside of any named name-space or in a (nested) name-space. + # Can't declare it in an anonymous name-space because that would make the # declared function static. if namespace_str: decl_lines.append(f"namespace {namespace_str} {{") diff --git a/tools/check_source/check_cmake_consistency.py b/tools/check_source/check_cmake_consistency.py index 2685ddb995f..c29a053dfcc 100755 --- a/tools/check_source/check_cmake_consistency.py +++ b/tools/check_source/check_cmake_consistency.py @@ -354,8 +354,8 @@ def main() -> None: errs.reverse() for cf, i in errs: print("%s:%d" % (cf, i)) - # Write a 'sed' script, useful if we get a lot of these - # print("sed '%dd' '%s' > '%s.tmp' ; mv '%s.tmp' '%s'" % (i, cf, cf, cf, cf)) + # Write a `sed` script, useful if we get a lot of theses: + # `print("sed '%dd' '%s' > '%s.tmp' ; mv '%s.tmp' '%s'" % (i, cf, cf, cf, cf))` if is_err: raise Exception("CMake references missing files, aborting!") diff --git a/tools/check_source/check_mypy.py b/tools/check_source/check_mypy.py index a26e3b808aa..ba4c57b79ec 100755 --- a/tools/check_source/check_mypy.py +++ b/tools/check_source/check_mypy.py @@ -95,7 +95,7 @@ def main() -> None: f, *extra_args, ) - # p = subprocess.Popen(cmd, env=extra_env, stdout=sys.stdout, stderr=sys.stderr) + # `p = subprocess.Popen(cmd, env=extra_env, stdout=sys.stdout, stderr=sys.stderr)` if extra_env: for k, v in extra_env.items(): diff --git a/tools/check_source/check_spelling.py b/tools/check_source/check_spelling.py index e4dd2b6c9b1..d6f378f2c4f 100755 --- a/tools/check_source/check_spelling.py +++ b/tools/check_source/check_spelling.py @@ -171,7 +171,7 @@ def hash_of_file_and_len(fp: str) -> Tuple[bytes, int]: import re re_vars = re.compile("[A-Za-z]+") -# First remove this from comments, so we don't spell check example code, doxygen commands, etc. +# First remove this from comments, so we don't spell check example code, DOXYGEN commands, etc. re_ignore = re.compile( r'(' @@ -184,17 +184,17 @@ re_ignore = re.compile( # Convention for TODO/FIXME messages: TODO(my name) OR FIXME(name+name) OR XXX(some-name) OR NOTE(name/other-name): r"\b(TODO|FIXME|XXX|NOTE|WARNING)\(@?[\w\s\+\-/]+\)|" - # Doxygen style:
 ... 
+ # DOXYGEN style:
 ... 
r"
.+
|" - # Doxygen style: \code ... \endcode + # DOXYGEN style: \code ... \endcode r"\s+\\code\b.+\s\\endcode\b|" - # Doxygen style #SOME_CODE. + # DOXYGEN style #SOME_CODE. r'#\S+|' - # Doxygen commands: \param foo + # DOXYGEN commands: \param foo r"\\(section|subsection|subsubsection|defgroup|ingroup|addtogroup|param|tparam|page|a|see)\s+\S+|" - # Doxygen commands without any arguments after them: \command + # DOXYGEN commands without any arguments after them: \command r"\\(retval|todo|name)\b|" - # Doxygen 'param' syntax used rarely: \param foo[in,out] + # DOXYGEN 'param' syntax used rarely: \param foo[in,out] r"\\param\[[a-z,]+\]\S*|" # Words containing underscores: a_b diff --git a/tools/check_source/check_spelling_config.py b/tools/check_source/check_spelling_config.py index 39c1d3e0e90..3e21e9c11cf 100644 --- a/tools/check_source/check_spelling_config.py +++ b/tools/check_source/check_spelling_config.py @@ -39,6 +39,7 @@ dict_custom = { "adjugate", "affectable", "alignable", + "branchless", "allocatable", "allocator", "allocators", @@ -152,6 +153,7 @@ dict_custom = { "generatrix", "glitchy", "haptics", + "headerless", "highlightable", "homogenous", "ideographic", @@ -192,6 +194,7 @@ dict_custom = { "losslessly", "luminances", "mappable", + "memoryless", "merchantability", "mergeable", "minimalistic", @@ -259,6 +262,7 @@ dict_custom = { "prefilter", "prefiltered", "prefiltering", + "preloading", "premutliplied", "preorder", "prepend", @@ -363,6 +367,7 @@ dict_custom = { "tokenizing", "transcode", "transmissive", + "triaging", "triangulations", "triangulator", "trilinear", @@ -823,7 +828,8 @@ dict_ignore_hyphenated_suffix = { files_ignore = { "tools/utils_doc/rna_manual_reference_updater.py", # Contains language ID references. - # Maintained by 3rd party. + # Maintained by 3rd parties. + "source/blender/blenlib/intern/fnmatch.c", "source/blender/draw/intern/shaders/common_fxaa_lib.glsl", "source/blender/gpu/shaders/common/gpu_shader_smaa_lib.glsl", } diff --git a/tools/triage/gitea_utils.py b/tools/triage/gitea_utils.py index fae30645a08..1572df99198 100644 --- a/tools/triage/gitea_utils.py +++ b/tools/triage/gitea_utils.py @@ -91,7 +91,7 @@ def gitea_json_issues_search( :param labels: comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded. :param created: filter (issues / pulls) created by you, default is false. :param reviewed: filter pulls reviewed by you, default is false. - :param access_token: token generated by the Gitea API. + :param access_token: token generated by the GITEA API. :return: List of issues or pulls. """ @@ -168,7 +168,7 @@ def gitea_json_issue_events_filter( return result -# WORKAROUND: This function doesn't involve Gitea, and the obtained username may not match the username used in Gitea. +# WORKAROUND: This function doesn't involve GITEA, and the obtained username may not match the username used in GITEA. # However, it provides an option to fetch the configured username from the local Git, # in case the user does not explicitly supply the username. def git_username_detect(): diff --git a/tools/utils/cycles_commits_sync.py b/tools/utils/cycles_commits_sync.py index ea4c03031b3..ead73775f64 100755 --- a/tools/utils/cycles_commits_sync.py +++ b/tools/utils/cycles_commits_sync.py @@ -28,7 +28,7 @@ GIT_SUBJECT_COMMON_PREFIX = b"Subject: [PATCH] " # Marker which indicates begin of new file in the patch set. GIT_FILE_SECTION_MARKER = b"diff --git" -# Marker of the end of the patchset. +# Marker of the end of the patch-set. GIT_PATCHSET_END_MARKER = b"-- " # Prefix of topic to be omitted diff --git a/tools/utils/make_cursor_gui.py b/tools/utils/make_cursor_gui.py index 4923a7a802b..a6b99bc9c3d 100755 --- a/tools/utils/make_cursor_gui.py +++ b/tools/utils/make_cursor_gui.py @@ -30,7 +30,7 @@ class App: self.state = [] self.states = 256 - self.laststate = 2 # 0=Black, 1=White, 2=Transp. + self.laststate = 2 # 0=Black, 1=White, 2=Transparent. self.size = 16 self.gridsz = 20 diff --git a/tools/utils_api/bpy_introspect_ui.py b/tools/utils_api/bpy_introspect_ui.py index 050c6fc63fe..db3a5f650bc 100644 --- a/tools/utils_api/bpy_introspect_ui.py +++ b/tools/utils_api/bpy_introspect_ui.py @@ -100,7 +100,7 @@ class AttributeBuilder: return attr_obj # def __setattr__(self, attr, value): - # setatte + # pass def __getitem__(self, item): item_obj = NewAttr(self._attr + "[" + repr(item) + "]", item) diff --git a/tools/utils_ide/qtcreator/externaltools/qtc_assembler_preview.py b/tools/utils_ide/qtcreator/externaltools/qtc_assembler_preview.py index fd6df09ec11..8fbc95d779e 100755 --- a/tools/utils_ide/qtcreator/externaltools/qtc_assembler_preview.py +++ b/tools/utils_ide/qtcreator/externaltools/qtc_assembler_preview.py @@ -156,8 +156,9 @@ def main(): arg_split += ["-ftree-vectorizer-verbose=1"] arg_split += ["-S"] - # arg_split += ["-masm=intel"] # optional - # arg_split += ["-fverbose-asm"] # optional but handy + if False: + arg_split += ["-masm=intel"] # Optional. + arg_split += ["-fverbose-asm"] # Optional but handy. else: sys.stderr.write(f"Compiler {COMPILER_ID!r} not supported") return diff --git a/tools/utils_maintenance/cmake_sort_filelists.py b/tools/utils_maintenance/cmake_sort_filelists.py index b7a2fabd111..945e1d04986 100755 --- a/tools/utils_maintenance/cmake_sort_filelists.py +++ b/tools/utils_maintenance/cmake_sort_filelists.py @@ -50,7 +50,7 @@ def sort_cmake_file_lists(fn: str, data_src: str) -> Optional[str]: # Headers. if l and os.path.isdir(os.path.join(fn_dir, l)): return True - # Libs. + # Libraries. if l.startswith(("bf_", "extern_")) and "." not in l and "/" not in l: return True return False