Cleanup: spelling in comments (make check_spelling_*)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
|
||||
@@ -56,13 +56,13 @@ ccl_device_inline packed_float3 osl_eval_camera(KernelGlobals kg,
|
||||
|
||||
float output[21] = {0.0f};
|
||||
# ifdef __KERNEL_OPTIX__
|
||||
optixDirectCall<void>(/* 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<void>(/*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]);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -177,6 +177,7 @@ dict_custom = {
|
||||
"extrema",
|
||||
"fallbacks",
|
||||
"finalizer",
|
||||
"fisheye",
|
||||
"flippable",
|
||||
"flushable",
|
||||
"formatter",
|
||||
|
||||
Reference in New Issue
Block a user