Cleanup: spelling in comments
This commit is contained in:
@@ -4002,7 +4002,7 @@ def km_grease_pencil_sculpt_mode(params):
|
||||
# Active layer
|
||||
op_menu("GREASE_PENCIL_MT_layer_active", {"type": 'Y', "value": 'PRESS'}),
|
||||
|
||||
# Automasking menu
|
||||
# Auto-masking menu.
|
||||
op_menu_pie("VIEW3D_MT_grease_pencil_sculpt_automasking_pie", {
|
||||
"type": 'A', "value": 'PRESS', "shift": True, "alt": True}),
|
||||
|
||||
|
||||
@@ -345,7 +345,7 @@ class Preprocessor {
|
||||
|
||||
void static_strings_parsing(const std::string &str)
|
||||
{
|
||||
/* Matches any character inside a pair of unescaped quote. */
|
||||
/* Matches any character inside a pair of un-escaped quote. */
|
||||
std::regex regex(R"("(?:[^"])*")");
|
||||
regex_global_search(
|
||||
str, regex, [&](const std::smatch &match) { static_strings_.insert(match[0].str()); });
|
||||
@@ -466,7 +466,7 @@ class Preprocessor {
|
||||
/* Example: `const uint global_var = 1u;`. Matches if not indented (i.e. inside a scope). */
|
||||
std::regex regex(R"(const \w+ \w+ =)");
|
||||
regex_global_search(str, regex, [&](const std::smatch &match) {
|
||||
/* Positive lookbehind is not supported in std::regex. Do it manually. */
|
||||
/* Positive look-behind is not supported in #std::regex. Do it manually. */
|
||||
if (match.prefix().str().back() == '\n') {
|
||||
const char *msg =
|
||||
"Global scope constant expression found. These get allocated per-thread in MSL. "
|
||||
@@ -604,7 +604,7 @@ class Preprocessor {
|
||||
std::stringstream suffix;
|
||||
suffix << "#line 1 ";
|
||||
#ifdef __APPLE__
|
||||
/* For now, only Metal supports filname in line directive.
|
||||
/* For now, only Metal supports filename in line directive.
|
||||
* There is no way to know the actual backend, so we assume Apple uses Metal. */
|
||||
/* TODO(fclem): We could make it work using a macro to choose between the filename and the hash
|
||||
* at runtime. i.e.: `FILENAME_MACRO(12546546541, 'filename.glsl')` This should work for both
|
||||
|
||||
@@ -158,7 +158,7 @@ bool is_zero(vec4 A)
|
||||
#define _shared_sta
|
||||
#define _shared_end
|
||||
|
||||
#define _enum_dummy /* Needed to please glslang. */
|
||||
#define _enum_dummy /* Needed to please `glslang`. */
|
||||
#define _enum_type(name) uint
|
||||
#define _enum_decl(name) const uint
|
||||
#define _enum_end _enum_dummy;
|
||||
|
||||
@@ -87,7 +87,7 @@ typedef enum eFFMpegPreset {
|
||||
} eFFMpegPreset;
|
||||
|
||||
/**
|
||||
* Mapping from easily-understandable quality (Costant Rate Factor - CRF) descriptions
|
||||
* Mapping from easily-understandable quality (Constant Rate Factor - CRF) descriptions
|
||||
* to H.264 8-bit CRF values. https://trac.ffmpeg.org/wiki/Encode/H.264#a1.ChooseaCRFvalue
|
||||
* For other video codecs these values might need to be remapped.
|
||||
*/
|
||||
|
||||
@@ -80,7 +80,7 @@ static ShaderNode *get_compositor_shader_node(DNode node)
|
||||
return new BrightContrastShaderNode(node);
|
||||
}
|
||||
|
||||
/* The algorithm is by Werner D. Streidt, extracted of OpenCV demhist.c:
|
||||
/* The algorithm is by Werner D. Streidt, extracted of OpenCV `demhist.c`:
|
||||
* http://visca.com/ffactory/archives/5-99/msg00021.html */
|
||||
template<bool UsePremultiply>
|
||||
static float4 brightness_and_contrast(const float4 &color,
|
||||
|
||||
Reference in New Issue
Block a user