diff --git a/build_files/build_environment/install_linux_packages.py b/build_files/build_environment/install_linux_packages.py index dd15666a410..93931430d62 100755 --- a/build_files/build_environment/install_linux_packages.py +++ b/build_files/build_environment/install_linux_packages.py @@ -928,8 +928,8 @@ class PackageInstaller: return cls._instance def run_command(self, command): - """Basic wrapper around `subprocess.Popen`, mimicking `subprocess.run` with a basic progress bar.""" - # First dummy call to get user password for sudo. Otherwise the progress bar on actuall commands + """Basic wrapper around ``subprocess.Popen``, mimicking ``subprocess.run`` with a basic progress bar.""" + # First dummy call to get user password for `sudo`. Otherwise the progress bar on actual commands # makes it impossible for users to enter their password. if not self.settings.no_sudo: subprocess.run([MAYSUDO, "echo"], capture_output=True) diff --git a/intern/cycles/kernel/device/cpu/kernel_arch_impl.h b/intern/cycles/kernel/device/cpu/kernel_arch_impl.h index f3f3e8f6608..5cf9d9e9cb6 100644 --- a/intern/cycles/kernel/device/cpu/kernel_arch_impl.h +++ b/intern/cycles/kernel/device/cpu/kernel_arch_impl.h @@ -4,7 +4,7 @@ /* Templated common implementation part of all CPU kernels. * - * The idea is that particular .cpp files sets needed optimization flags and + * The idea is that particular `.cpp` files sets needed optimization flags and * simply includes this file without worry of copying actual implementation over. */ diff --git a/intern/cycles/kernel/osl/camera.h b/intern/cycles/kernel/osl/camera.h index 6dd3737d6dc..d27ca11fe48 100644 --- a/intern/cycles/kernel/osl/camera.h +++ b/intern/cycles/kernel/osl/camera.h @@ -56,13 +56,13 @@ ccl_device_inline packed_float3 osl_eval_camera(KernelGlobals kg, float output[21] = {0.0f}; # ifdef __KERNEL_OPTIX__ - optixDirectCall(/* NUM_CALLABLE_PROGRAM_GROUPS */ 2, - /* shaderglobals_ptr = */ &globals, - /* groupdata_ptr = */ (void *)nullptr, - /* userdata_base_ptr = */ (void *)nullptr, - /* output_base_ptr = */ (void *)output, - /* shadeindex = */ 0, - /* interactive_params_ptr */ (void *)nullptr); + optixDirectCall(/*NUM_CALLABLE_PROGRAM_GROUPS*/ 2, + /*shaderglobals_ptr*/ &globals, + /*groupdata_ptr*/ (void *)nullptr, + /*userdata_base_ptr*/ (void *)nullptr, + /*output_base_ptr*/ (void *)output, + /*shadeindex*/ 0, + /*interactive_params_ptr*/ (void *)nullptr); # endif P = make_float3(output[0], output[1], output[2]); diff --git a/scripts/modules/bl_i18n_utils/settings.py b/scripts/modules/bl_i18n_utils/settings.py index bf63c713a94..623a2f4c357 100644 --- a/scripts/modules/bl_i18n_utils/settings.py +++ b/scripts/modules/bl_i18n_utils/settings.py @@ -105,7 +105,7 @@ DEFAULT_CONTEXT = "*" # Name of language file used by Blender to generate translations' menu. LANGUAGES_FILE = "languages" -# The minimum level of completeness for a po file to be imported from +# The minimum level of completeness for a `.po` file to be imported from # the working repository to the Blender one, as a percentage. IMPORT_MIN_LEVEL = 0.0 diff --git a/scripts/modules/bl_i18n_utils/utils.py b/scripts/modules/bl_i18n_utils/utils.py index 591ab2c55f9..269054dbbdd 100644 --- a/scripts/modules/bl_i18n_utils/utils.py +++ b/scripts/modules/bl_i18n_utils/utils.py @@ -92,19 +92,20 @@ def locale_explode(locale): def locale_match(loc1, loc2): """ Return: - -n if loc1 is a subtype of loc2 (e.g. 'fr_FR' is a subtype of 'fr'). + -n if loc1 is a subtype of loc2 (e.g. ``fr_FR`` is a subtype of ``fr``). +n if loc2 is a subtype of loc1. - n becomes smaller when both locales are more similar (e.g. (sr, sr_SR) are more similar than (sr, sr_SR@latin)). + n becomes smaller when both locales are more similar + ... (e.g. (``sr, sr_SR``) are more similar than (``sr, sr_SR@latin``)). 0 if they are exactly the same. ... (Ellipsis) if they cannot match! - Note: We consider that 'sr_SR@latin' is a subtype of 'sr@latin', 'sr_SR' and 'sr', but 'sr_SR' and 'sr@latin' won't - match (will return ...)! + Note: We consider that ``sr_SR@latin`` is a subtype of ``sr@latin``, ``sr_SR`` and ``sr``, + but ``sr_SR`` and ``sr@latin`` won't match (will return ...)! Note: About similarity, diff in variants are more important than diff in countries, currently here are the cases: - (sr, sr_SR) -> 1 - (sr@latin, sr_SR@latin) -> 1 - (sr, sr@latin) -> 2 - (sr_SR, sr_SR@latin) -> 2 - (sr, sr_SR@latin) -> 3 + (``sr, sr_SR``) -> 1 + (``sr@latin, sr_SR@latin``) -> 1 + (``sr, sr@latin``) -> 2 + (``sr_SR, sr_SR@latin``) -> 2 + (``sr, sr_SR@latin``) -> 3 """ if loc1 == loc2: return 0 diff --git a/source/blender/blenlib/BLI_serialize.hh b/source/blender/blenlib/BLI_serialize.hh index e3ef55286d4..41efa5e4173 100644 --- a/source/blender/blenlib/BLI_serialize.hh +++ b/source/blender/blenlib/BLI_serialize.hh @@ -171,7 +171,7 @@ class Value { * For generating value types that represent types that are typically known processor data types. */ template< - /** Wrapped c/cpp data type that is used to store the value. */ + /** Wrapped C/C++ data type that is used to store the value. */ typename T, /** Value type of the class. */ eValueType V> diff --git a/source/blender/blenlib/tests/BLI_hash_mm2a_test.cc b/source/blender/blenlib/tests/BLI_hash_mm2a_test.cc index bfa8b90642e..9c8364a6cc4 100644 --- a/source/blender/blenlib/tests/BLI_hash_mm2a_test.cc +++ b/source/blender/blenlib/tests/BLI_hash_mm2a_test.cc @@ -7,7 +7,7 @@ #include "BLI_hash_mm2a.hh" /* NOTE: Reference results are taken from reference implementation - * (cpp code, CMurmurHash2A variant): + * (C++ code, CMurmurHash2A variant): * https://smhasher.googlecode.com/svn-history/r130/trunk/MurmurHash2.cpp */ diff --git a/source/blender/editors/interface/interface_ops.cc b/source/blender/editors/interface/interface_ops.cc index df2af300b74..5140fd875fc 100644 --- a/source/blender/editors/interface/interface_ops.cc +++ b/source/blender/editors/interface/interface_ops.cc @@ -374,7 +374,7 @@ static wmOperatorStatus reset_default_button_exec(bContext *C, wmOperator *op) const int array_index = (all) ? -1 : index; if (RNA_property_reset(&ptr, prop, array_index)) { - /* Apply auto keyframe when proprety is successfully reset. */ + /* Apply auto keyframe when property is successfully reset. */ Scene *scene = CTX_data_scene(C); blender::animrig::autokeyframe_property( C, scene, &ptr, prop, array_index, scene->r.cfra, true); diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index fc1a8fe9a23..a6949c1bbc9 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -111,7 +111,7 @@ typedef struct RegionView3D { /** Last view (use when switching out of camera view). */ float lviewquat[4]; - /** Lpersp can never be set to 'RV3D_CAMOB'. */ + /** The last perspective can never be set to #RV3D_CAMOB. */ char lpersp; char lview; char lview_axis_roll; diff --git a/tools/check_source/check_spelling_config.py b/tools/check_source/check_spelling_config.py index 95e4432d487..40a6bf36d8d 100644 --- a/tools/check_source/check_spelling_config.py +++ b/tools/check_source/check_spelling_config.py @@ -177,6 +177,7 @@ dict_custom = { "extrema", "fallbacks", "finalizer", + "fisheye", "flippable", "flushable", "formatter",