Cleanup: spelling in comments (make check_spelling_*)
Also inconsistent capitalization.
This commit is contained in:
@@ -261,7 +261,7 @@ bool DenoiserGPU::denoise_filter_color_preprocess(const DenoiseContext &context,
|
||||
{
|
||||
if (context.denoise_params.type != DENOISER_OPTIX) {
|
||||
/* Pass preprocessing is used to clamp values for the OptiX denoiser.
|
||||
* Clamping is not necceasry for other denoisers, so just skip this preprocess step. */
|
||||
* Clamping is not necessary for other denoisers, so just skip this preprocess step. */
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ void BLI_threadapi_init(void);
|
||||
void BLI_threadapi_exit(void);
|
||||
|
||||
/**
|
||||
* \param tot: When 0 only initializes malloc mutex in a safe way (see sequence.c)
|
||||
* \param tot: When 0 only initializes `malloc` mutex in a safe way (see sequence.c)
|
||||
* problem otherwise: scene render will kill of the mutex!
|
||||
*/
|
||||
void BLI_threadpool_init(struct ListBase *threadbase, void *(*do_thread)(void *), int tot);
|
||||
|
||||
@@ -863,34 +863,34 @@ bool BLI_str_utf32_char_is_optional_break_before(char32_t codepoint, char32_t co
|
||||
|
||||
/* Close punctuation. */
|
||||
if (ELEM(codepoint_prev,
|
||||
0x3001, /* Ideographic Comma. */
|
||||
0x3002, /* Ideographic Full Stop. */
|
||||
0xFE10, /* Presentation Form for Vertical Ideographic Comma. */
|
||||
0xFE11, /* Presentation Form for Vertical Ideographic Full Stop. */
|
||||
0xFE12, /* Presentation Form for Vertical Ideographic Colon. */
|
||||
0xFE50, /* Small Comma. */
|
||||
0xFE52, /* Small Full Stop. */
|
||||
0xFF0C, /* Fullwidth Comma. */
|
||||
0xFF0E, /* Fullwidth Full Stop. */
|
||||
0XFF61, /* Halfwidth Ideographic Full Stop. */
|
||||
0Xff64)) /* Halfwidth Ideographic Comma. */
|
||||
0x3001, /* Ideographic comma. */
|
||||
0x3002, /* Ideographic full stop. */
|
||||
0xFE10, /* Presentation form for vertical ideographic comma. */
|
||||
0xFE11, /* Presentation form for vertical ideographic full stop. */
|
||||
0xFE12, /* Presentation form for vertical ideographic colon. */
|
||||
0xFE50, /* Small comma. */
|
||||
0xFE52, /* Small full stop. */
|
||||
0xFF0C, /* Full-width comma. */
|
||||
0xFF0E, /* Full-width full stop. */
|
||||
0XFF61, /* Half-width ideographic full stop. */
|
||||
0Xff64)) /* Half-width ideographic comma. */
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Exclamation/Interrogation. */
|
||||
if (ELEM(codepoint_prev,
|
||||
'!', /* Exlamation Mark. */
|
||||
'?', /* Question Mark. */
|
||||
0x05C6, /* Hebrew punctuation maqaf. */
|
||||
'!', /* Exclamation mark. */
|
||||
'?', /* Question mark. */
|
||||
0x05C6, /* Hebrew punctuation `maqaf`. */
|
||||
0x061B, /* Arabic semicolon. */
|
||||
0x061E, /* Arabic triple dot. */
|
||||
0x061F, /* Arabic question mark. */
|
||||
0x06D4, /* Arabic full stop. */
|
||||
0x07F9, /* N'Ko question mark. */
|
||||
0x0F0D, /* Tibetan shad mark. */
|
||||
0xFF01, /* Fullwidth Exclamation Mark. */
|
||||
0xFF1F)) /* Fullwidth Question Mark. */
|
||||
0xFF01, /* Full-width exclamation mark. */
|
||||
0xff1f)) /* full-width question mark. */
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
/** \name Macros
|
||||
* \{ */
|
||||
|
||||
/* Allows to avoid using malloc for userdata_chunk in tasks, when small enough. */
|
||||
/* Allows to avoid using `malloc` for userdata_chunk in tasks, when small enough. */
|
||||
#define MALLOCA(_size) ((_size) <= 8192) ? alloca(_size) : MEM_mallocN((_size), __func__)
|
||||
#define MALLOCA_FREE(_mem, _size) \
|
||||
if (((_mem) != nullptr) && ((_size) > 8192)) { \
|
||||
|
||||
@@ -1875,8 +1875,8 @@ static void update_musgrave_node_dimensions(bNodeTree *ntree)
|
||||
}
|
||||
|
||||
/* The Color output of the Musgrave node has been removed. Previously, this
|
||||
* output was just equal to the Fac output. To correct this, we move links
|
||||
* from the Color output to the Fac output if they exist.
|
||||
* output was just equal to the `Fac` output. To correct this, we move links
|
||||
* from the Color output to the `Fac` output if they exist.
|
||||
*/
|
||||
static void update_musgrave_node_color_output(bNodeTree *ntree)
|
||||
{
|
||||
@@ -1919,10 +1919,10 @@ static void update_voronoi_node_f3_and_f4(bNodeTree *ntree)
|
||||
}
|
||||
}
|
||||
|
||||
/* The Fac output of the Voronoi node has been removed. Previously, this
|
||||
/* The `Fac` output of the Voronoi node has been removed. Previously, this
|
||||
* output was the voronoi distance in the Intensity mode and the Cell ID
|
||||
* in the Cell mode. To correct this, we update the identifier and name
|
||||
* of the Fac socket such that it gets mapped to the Distance socket.
|
||||
* of the `Fac` socket such that it gets mapped to the Distance socket.
|
||||
* This is supposed to work with update_voronoi_node_coloring.
|
||||
*/
|
||||
static void update_voronoi_node_fac_output(bNodeTree *ntree)
|
||||
@@ -2051,7 +2051,7 @@ static void update_voronoi_node_crackle(bNodeTree *ntree)
|
||||
* The coloring property of the Voronoi node was removed. Previously,
|
||||
* if the coloring enum was set to Intensity (0), the voronoi distance
|
||||
* was returned in all outputs, otherwise, the Cell ID was returned.
|
||||
* Since we remapped the Fac output in update_voronoi_node_fac_output,
|
||||
* Since we remapped the `Fac` output in update_voronoi_node_fac_output,
|
||||
* then to fix this, we relink the Color output to the Distance
|
||||
* output if coloring was set to 0, and the other way around otherwise.
|
||||
*/
|
||||
|
||||
@@ -255,15 +255,15 @@ void UI_fontstyle_draw_multiline_clipped_ex(const uiFontStyle *fs,
|
||||
|
||||
/* Draw so that overall text is centered vertically. */
|
||||
yofs = (max_height + lines.size() * line_height) / 2.0f - BLF_ascender(fs->uifont_id) -
|
||||
/* Not sure substracting the descender is always wanted, gives best results where this is
|
||||
* currently used. */
|
||||
/* Not sure subtracting the descender is always wanted,
|
||||
* gives best results where this is currently used. */
|
||||
BLF_descender(fs->uifont_id) / 2.0f;
|
||||
yofs = std::max(0, yofs);
|
||||
|
||||
ResultBLF line_result = {0, 0};
|
||||
/* Draw each line with the given alignment. */
|
||||
for (StringRef line : lines) {
|
||||
/* String wrapping might have trailing/leading whitespace. */
|
||||
/* String wrapping might have trailing/leading white-space. */
|
||||
line = line.trim();
|
||||
|
||||
if (align == UI_STYLE_TEXT_CENTER) {
|
||||
|
||||
@@ -877,7 +877,7 @@ static bool render_break(void * /*rjv*/)
|
||||
return false;
|
||||
}
|
||||
|
||||
/* runs in thread, no cursor setting here works. careful with notifiers too (malloc conflicts) */
|
||||
/* runs in thread, no cursor setting here works. careful with notifiers too (`malloc` conflicts) */
|
||||
/* maybe need a way to get job send notifier? */
|
||||
static void render_drawlock(void *rjv, bool lock)
|
||||
{
|
||||
|
||||
@@ -685,7 +685,7 @@ ImBuf *IMB_dupImBuf(const ImBuf *ibuf1)
|
||||
}
|
||||
tbuf.dds_data.data = nullptr;
|
||||
|
||||
/* set malloc flag */
|
||||
/* Set `malloc` flag. */
|
||||
tbuf.refcounter = 0;
|
||||
|
||||
/* for now don't duplicate metadata */
|
||||
|
||||
@@ -448,6 +448,7 @@ dict_custom = {
|
||||
"unclaim",
|
||||
"unclamped",
|
||||
"unclipped",
|
||||
"unclosed",
|
||||
"uncollapsed",
|
||||
"uncomment",
|
||||
"uncommented",
|
||||
@@ -469,6 +470,7 @@ dict_custom = {
|
||||
"undistorting",
|
||||
"unduplicated",
|
||||
"uneditable",
|
||||
"unescaped",
|
||||
"unflagged",
|
||||
"unflip",
|
||||
"unfoldable",
|
||||
|
||||
Reference in New Issue
Block a user