Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2024-01-29 11:47:42 +11:00
parent e7b127f363
commit be7f89a9f5
14 changed files with 27 additions and 27 deletions

@ -593,9 +593,8 @@ static inline bool object_use_deform_motion(BL::Object &b_parent, BL::Object &b_
/* If motion blur is enabled for the object we also check
* whether it's enabled for the parent object as well.
*
* This way we can control motion blur from the dupligroup
* duplicator much easier.
*/
* This way we can control motion blur from the dupli-group
* duplicator much easier. */
if (use_deform_motion && b_parent.ptr.data != b_ob.ptr.data) {
PointerRNA parent_cobject = RNA_pointer_get(&b_parent.ptr, "cycles");
use_deform_motion &= get_boolean(parent_cobject, "use_deform_motion");

@ -413,7 +413,7 @@ class Layer : public ::GreasePencilLayer {
bool has_drawing_at(const int frame_number) const;
/**
* \returns the key of the active frame at \a frame_number or std::nullopt if there is no frame.
* \returns the key of the active frame at \a frame_number or #std::nullopt if there is no frame.
*/
std::optional<FramesMapKey> frame_key_at(int frame_number) const;
@ -438,12 +438,12 @@ class Layer : public ::GreasePencilLayer {
void tag_frames_map_keys_changed();
/**
* Prepare the DNA #GreasePencilLayer data before blendfile writing.
* Prepare the DNA #GreasePencilLayer data before blend-file writing.
*/
void prepare_for_dna_write();
/**
* Update from DNA #GreasePencilLayer data after blendfile reading.
* Update from DNA #GreasePencilLayer data after blend-file reading.
*/
void update_from_dna_read();
@ -543,12 +543,12 @@ class LayerGroup : public ::GreasePencilLayerTreeGroup {
void print_nodes(StringRefNull header) const;
/**
* Prepare the DNA #GreasePencilLayerTreeGroup data before blendfile writing.
* Prepare the DNA #GreasePencilLayerTreeGroup data before blend-file writing.
*/
void prepare_for_dna_write();
/**
* Update from DNA #GreasePencilLayerTreeGroup data after blendfile reading.
* Update from DNA #GreasePencilLayerTreeGroup data after blend-file reading.
*/
void update_from_dna_read();

@ -73,7 +73,7 @@ void BKE_view_layer_free_ex(ViewLayer *view_layer, bool do_id_user);
/**
* Free the bases of this #ViewLayer, and what they reference.
* This includes baseact, object_bases, object_bases_hash, and layer_collections.
* This includes `baseact`, `object_bases`, `object_bases_hash`, and `layer_collections`.
*/
void BKE_view_layer_free_object_content(ViewLayer *view_layer);

@ -57,7 +57,7 @@ typedef struct BlendFileData {
int fileflags;
int globalf;
/** Typically the actual filepath of the read blendfile, except when recovering
/** Typically the actual filepath of the read blend-file, except when recovering
* save-on-exit/autosave files. In the latter case, it will be the path of the file that
* generated the auto-saved one being recovered.
*

@ -67,7 +67,7 @@ struct FileData {
/** Used for relative paths handling.
*
* Typically the actual filepath of the read blendfile, except when recovering
* Typically the actual filepath of the read blend-file, except when recovering
* save-on-exit/autosave files. In the latter case, it will be the path of the file that
* generated the auto-saved one being recovered.
*

@ -244,9 +244,9 @@ class ReflectionProbeModule {
}
/**
* Get the resolution of a single cubemap side when rendering probes.
* Get the resolution of a single cube-map side when rendering probes.
*
* The cubemaps are rendered half size of the size of the octahedral texture.
* The cube-maps are rendered half size of the size of the octahedral texture.
*/
int probe_render_extent() const;

@ -19,7 +19,7 @@ typedef struct GlobalsUboStorage GlobalsUboStorage;
#define UBO_FIRST_COLOR color_wire
#define UBO_LAST_COLOR color_uv_shadow
/* Used as ubo but colors can be directly referenced as well */
/* Used as UBO but colors can be directly referenced as well */
/* \note Also keep all color as vec4 and between #UBO_FIRST_COLOR and #UBO_LAST_COLOR. */
struct GlobalsUboStorage {
/* UBOs data needs to be 16 byte aligned (size of vec4) */

@ -17,8 +17,8 @@ struct FileHanlderType;
namespace blender::ed::io {
/**
* Shows a import dialog if the operator was invoked with filepath properties set, otherwise
* invokes the fileselect window.
* Shows a import dialog if the operator was invoked with filepath properties set,
* otherwise invokes the file-select window.
*/
int filesel_drop_import_invoke(bContext *C, wmOperator *op, const wmEvent *event);

@ -321,7 +321,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
else if (t->spacetype == SPACE_SEQ && region->regiontype == RGN_TYPE_PREVIEW) {
t->options |= CTX_SEQUENCER_IMAGE;
/* Needed for autokeying transforms in preview during playback. */
/* Needed for auto-keying transforms in preview during playback. */
bScreen *animscreen = ED_screen_animation_playing(CTX_wm_manager(C));
t->animtimer = (animscreen) ? animscreen->animtimer : nullptr;
}

@ -88,9 +88,9 @@ class IndexedFaceSet : public Rep {
* iTIndices
* The Texture coordinates indices (per vertex). The integers contained in this array must
* be multiple of 2. iTISize The size of iMIndices iCopy 0 : the arrays are not copied. The
* pointers passed as arguments are used. IndexedFaceSet takes these arrays desallocation in
* pointers passed as arguments are used. IndexedFaceSet takes these arrays deallocation in
* charge. 1 : the arrays are copied. The caller is in charge of the arrays, passed as arguments
* desallocation.
* deallocation.
*/
IndexedFaceSet(float *iVertices,
uint iVSize,

@ -425,7 +425,7 @@ const EnumPropertyItem *RNA_node_enum_definition_itemf(
for (const blender::bke::RuntimeNodeEnumItem &item : enum_items.items) {
tmp.value = item.identifier;
/* Item name is unique and used as the RNA identitifier as well.
/* Item name is unique and used as the RNA identifier as well.
* The integer value is persistent and unique and should be used
* when storing the enum value. */
tmp.identifier = item.name.c_str();

@ -166,8 +166,8 @@ static void node_gather_link_searches(GatherLinkSearchOpParams &params)
}
/**
* Multifunction which evaluates the switch input for each enum item and partially fills the output
* array with values from the input array where the identifier matches.
* Multi-function which evaluates the switch input for each enum item and partially fills the
* output array with values from the input array where the identifier matches.
*/
class MenuSwitchFn : public mf::MultiFunction {
const NodeEnumDefinition &enum_def_;

@ -1327,14 +1327,14 @@ static int imagewraposa_aniso(Tex *tex,
texres->trgba[3] = 1.0f - texres->trgba[3];
}
/* de-premul, this is being pre-multiplied in shade_input_do_shade()
/* de-pre-multiply, this is being pre-multiplied in shade_input_do_shade()
* TXF: this currently does not (yet?) work properly, destroys edge AA in clip/checker mode,
* so for now commented out also disabled in imagewraposa()
* so for now commented out also disabled in #imagewraposa()
* to be able to compare results with blender's default texture filtering */
/* brecht: tried to fix this, see "TXF alpha" comments */
/* do not de-premul for generated alpha, it is already in straight */
/* do not de-pre-multiply for generated alpha, it is already in straight */
if (texres->trgba[3] != 1.0f && texres->trgba[3] > 1e-4f && !(tex->imaflag & TEX_CALCALPHA)) {
fx = 1.0f / texres->trgba[3];
texres->trgba[0] *= fx;
@ -1720,8 +1720,8 @@ int imagewraposa(Tex *tex,
texres->trgba[3] = 1.0f - texres->trgba[3];
}
/* de-premul, this is being pre-multiplied in shade_input_do_shade() */
/* do not de-premul for generated alpha, it is already in straight */
/* de-pre-multiply, this is being pre-multiplied in shade_input_do_shade() */
/* do not de-pre-multiply for generated alpha, it is already in straight */
if (texres->trgba[3] != 1.0f && texres->trgba[3] > 1e-4f && !(tex->imaflag & TEX_CALCALPHA)) {
mul_v3_fl(texres->trgba, 1.0f / texres->trgba[3]);
}

@ -89,6 +89,7 @@ dict_custom = {
"deallocate",
"deallocated",
"deallocating",
"deallocation",
"decompressor",
"decorrelated",
"decrement",