Cleanup: spelling in comments
This commit is contained in:
parent
5eab5713c0
commit
22184f3aee
|
@ -666,7 +666,7 @@ typedef struct AttributeDescriptor {
|
|||
/* For manifold next event estimation, we need space to store and evaluate
|
||||
* 2 closures (with extra data) on the refractive interfaces, in addition
|
||||
* to keeping the full sd at the current shading point. We need 4 because a
|
||||
* refractive bsdf is instanced with a companion reflection bsdf, even though
|
||||
* refractive BSDF is instanced with a companion reflection BSDF, even though
|
||||
* we only need the refractive one, and each of them requires 2 slots. */
|
||||
#ifndef __CAUSTICS_MAX_CLOSURE__
|
||||
# define CAUSTICS_MAX_CLOSURE 4
|
||||
|
|
|
@ -447,7 +447,7 @@ typedef struct View2DEdgePanData {
|
|||
struct ARegion *region;
|
||||
/** View2d we're operating in. */
|
||||
struct View2D *v2d;
|
||||
/* Limit maximum pannable area */
|
||||
/** Limit maximum pannable area. */
|
||||
struct rctf limit;
|
||||
|
||||
/** Panning should only start once being in the inside rect once (e.g. adding nodes can happen
|
||||
|
|
|
@ -6516,7 +6516,7 @@ uiBut *uiDefSearchButO_ptr(uiBlock *block,
|
|||
|
||||
if (properties) {
|
||||
PointerRNA *ptr = UI_but_operator_ptr_get(but);
|
||||
/* Copy idproperties. */
|
||||
/* Copy id-properties. */
|
||||
ptr->data = IDP_CopyProperty(properties);
|
||||
}
|
||||
|
||||
|
@ -6755,7 +6755,7 @@ void UI_but_string_info_get(bContext *C, uiBut *but, ...)
|
|||
PointerRNA *opptr = UI_but_operator_ptr_get(but);
|
||||
wmOperatorType *ot = but->optype;
|
||||
|
||||
/* so the context is passed to itemf functions */
|
||||
/* So the context is passed to `itemf` functions. */
|
||||
WM_operator_properties_sanitize(opptr, false);
|
||||
|
||||
/* if the default property of the operator is enum and it is set,
|
||||
|
|
|
@ -332,7 +332,7 @@ static void ui_pie_menu_level_invoke(bContext *C, void *argN, void *arg2)
|
|||
PointerRNA ptr;
|
||||
|
||||
WM_operator_properties_create_ptr(&ptr, lvl->ot);
|
||||
/* so the context is passed to itemf functions (some need it) */
|
||||
/* So the context is passed to `itemf` functions (some need it). */
|
||||
WM_operator_properties_sanitize(&ptr, false);
|
||||
PropertyRNA *prop = RNA_struct_find_property(&ptr, lvl->propname);
|
||||
|
||||
|
|
|
@ -470,7 +470,7 @@ static StringRef skip_unsupported_options(StringRef line)
|
|||
return line;
|
||||
}
|
||||
|
||||
/* Remove upto start of the last option + size of the last option + space after it. */
|
||||
/* Remove up to start of the last option + size of the last option + space after it. */
|
||||
line = line.drop_prefix(last_option_pos + last_option.size() + 1);
|
||||
for (int i = 0; i < map_options.number_of_args(last_option); i++) {
|
||||
const int64_t pos_space{line.find_first_of(' ')};
|
||||
|
@ -589,7 +589,7 @@ void MTLParser::parse_and_store(Map<string, std::unique_ptr<MTLMaterial>> &r_mtl
|
|||
|
||||
/* Parse image textures. */
|
||||
else if (line_key.find("map_") != StringRef::not_found) {
|
||||
/* TODO howardt: fix this */
|
||||
/* TODO(@howardt): fix this. */
|
||||
eMTLSyntaxElement line_key_enum = mtl_line_key_str_to_enum(line_key);
|
||||
if (line_key_enum == eMTLSyntaxElement::string ||
|
||||
!current_mtlmaterial->texture_maps.contains_as(line_key_enum)) {
|
||||
|
@ -601,7 +601,7 @@ void MTLParser::parse_and_store(Map<string, std::unique_ptr<MTLMaterial>> &r_mtl
|
|||
Vector<StringRef> str_map_xx_split;
|
||||
split_by_char(rest_line, ' ', str_map_xx_split);
|
||||
|
||||
/* TODO ankitm: use `skip_unsupported_options` for parsing these options too? */
|
||||
/* TODO(@ankitm): use `skip_unsupported_options` for parsing these options too? */
|
||||
const int64_t pos_o{str_map_xx_split.first_index_of_try("-o")};
|
||||
if (pos_o != -1 && pos_o + 3 < str_map_xx_split.size()) {
|
||||
copy_string_to_float({str_map_xx_split[pos_o + 1],
|
||||
|
|
Loading…
Reference in New Issue