Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2022-08-17 15:43:17 +10:00
parent a1f10b10b6
commit 95fd163074
20 changed files with 24 additions and 26 deletions

View File

@ -39,10 +39,10 @@ enum BVHType {
BVH_NUM_TYPES,
};
/* Names bitflag type to denote which BVH layouts are supported by
/* Names bit-flag type to denote which BVH layouts are supported by
* particular area.
*
* Bitflags are the BVH_LAYOUT_* values.
* Bit-flags are the BVH_LAYOUT_* values.
*/
typedef int BVHLayoutMask;

View File

@ -44,7 +44,7 @@ ccl_device_forceinline float3 integrate_surface_ray_offset(KernelGlobals kg,
/* Self intersection tests already account for the case where a ray hits the
* same primitive. However precision issues can still cause neighboring
* triangles to be hit. Here we test if the ray-triangle intersection with
* the same primitive would miss, implying that a neighbouring triangle would
* the same primitive would miss, implying that a neighboring triangle would
* be hit instead.
*
* This relies on triangle intersection to be watertight, and the object inverse

View File

@ -184,8 +184,8 @@ bool OIIOImageLoader::load_pixels(const ImageMetaData &metadata,
ImageSpec config = ImageSpec();
/* Load without automatic OIIO alpha conversion, we do it ourselves. OIIO
* will associate alpha in the the 8bit buffer for PNGs, which leads to too
* much precision loss when we load it as half float to do a colorspace
* will associate alpha in the 8bit buffer for PNGs, which leads to too
* much precision loss when we load it as half float to do a color-space
* transform. */
config.attribute("oiio:UnassociatedAlpha", 1);

View File

@ -667,7 +667,7 @@ typedef struct CustomDataTransferLayerMap {
size_t data_size;
/** Offset of actual data we transfer (in element contained in data_src/dst). */
size_t data_offset;
/** For bitflag transfer, flag(s) to affect in transferred data. */
/** For bit-flag transfer, flag(s) to affect in transferred data. */
uint64_t data_flag;
/** Opaque pointer, to be used by specific interp callback (e.g. transformspace for normals). */

View File

@ -113,7 +113,7 @@ typedef struct IDTypeInfo {
*/
short id_code;
/**
* Bitflag matching id_code, used for filtering (e.g. in file browser), see DNA_ID.h's
* Bit-flag matching id_code, used for filtering (e.g. in file browser), see DNA_ID.h's
* FILTER_ID_XX enums.
*/
uint64_t id_filter;

View File

@ -816,7 +816,7 @@ bool BKE_image_render_write_exr(ReportList *reports,
const bool pass_RGBA = (STR_ELEM(rp->chan_id, "RGB", "RGBA", "R", "G", "B", "A"));
const bool pass_half_float = half_float && pass_RGBA;
/* Colorspace conversion only happens on RGBA passes. */
/* Color-space conversion only happens on RGBA passes. */
float *output_rect =
(save_as_render && pass_RGBA) ?
image_exr_from_scene_linear_to_output(

View File

@ -1342,7 +1342,7 @@ ImBuf *BKE_tracking_stabilize_frame(
return ibuf;
}
/* Allocate frame for stabilization result, copy alpha mode and colorspace. */
/* Allocate frame for stabilization result, copy alpha mode and color-space. */
ibuf_flags = 0;
if (ibuf->rect) {
ibuf_flags |= IB_rect;

View File

@ -23,7 +23,7 @@ void ChannelMatteNode::convert_to_operations(NodeConverter &converter,
NodeOutput *output_socket_matte = this->get_output_socket(1);
NodeOperation *convert = nullptr, *inv_convert = nullptr;
/* colorspace */
/* color-space */
switch (node->custom1) {
case CMP_NODE_CHANNEL_MATTE_CS_RGB:
break;

View File

@ -811,8 +811,8 @@ static void clip_main_region_draw(const bContext *C, ARegion *region)
int width, height;
bool show_cursor = false;
/* if tracking is in progress, we should synchronize framenr from clipuser
* so latest tracked frame would be shown */
/* If tracking is in progress, we should synchronize the frame from the clip-user
* (#MovieClipUser.framenr) so latest tracked frame would be shown. */
if (clip && clip->tracking_context) {
BKE_autotrack_context_sync_user(clip->tracking_context, &sc->user);
}

View File

@ -921,7 +921,7 @@ void uiTemplateImage(uiLayout *layout,
}
}
/* Colorspace and alpha */
/* Color-space and alpha. */
{
uiItemS(layout);

View File

@ -153,7 +153,7 @@ void TreeElementOverridesBase::expand(SpaceOutliner &space_outliner) const
/** \} */
/* -------------------------------------------------------------------- */
/** \name Overriden Property
/** \name Overridden Property
*
* Represents an RNA property that was overridden.
*
@ -187,7 +187,7 @@ StringRefNull TreeElementOverridesProperty::getWarning() const
/** \} */
/* -------------------------------------------------------------------- */
/** \name Overriden Property Operation
/** \name Overridden Property Operation
*
* See #TreeElementOverridesPropertyOperation.
* \{ */

View File

@ -66,7 +66,7 @@ class TreeElementOverridesProperty : public AbstractTreeElement {
};
/**
* Represent a single operation within an overriden property. While usually a single override
* Represent a single operation within an overridden property. While usually a single override
* property represents a single operation (changing the value), a single overridden collection
* property may have multiple operations, e.g. to insert or remove collection items.
*

View File

@ -5228,7 +5228,7 @@ static void lineart_gpencil_generate(LineartCache *cache,
}
if (shaodow_selection) {
if (ec->shadow_mask_bits != LRT_SHADOW_MASK_UNDEFINED) {
/* TODO(Yiming): Give a behaviour option for how to display undefined shadow info. */
/* TODO(@Yiming): Give a behavior option for how to display undefined shadow info. */
if ((shaodow_selection == LRT_SHADOW_FILTER_ILLUMINATED &&
(!(ec->shadow_mask_bits & LRT_SHADOW_MASK_ILLUMINATED)))) {
continue;

View File

@ -21,7 +21,7 @@ namespace blender::gpu {
/** \name Vertex Array Bindings
* \{ */
/* Returns enabled vertex pointers as a bitflag (one bit per attrib). */
/** Returns enabled vertex pointers as a bit-flag (one bit per attribute). */
static uint16_t vbo_bind(const ShaderInterface *interface,
const GPUVertFormat *format,
uint v_first,

View File

@ -628,7 +628,7 @@ enum {
/* Bitflags affecting behavior of any kind of sorting. */
/** Special flag to indicate that order is locked (not user-changeable). */
UILST_FLT_SORT_LOCK = 1u << 30,
/** Special value, bitflag used to reverse order! */
/** Special value, bit-flag used to reverse order! */
UILST_FLT_SORT_REVERSE = 1u << 31,
};

View File

@ -1160,7 +1160,7 @@ typedef enum eUserpref_StatusBar_Flag {
* #UserDef.autokey_mode
*/
typedef enum eAutokey_Mode {
/* AUTOKEY_ON is a bitflag */
/* AUTOKEY_ON is a bit-flag. */
AUTOKEY_ON = 1,
/**

View File

@ -29,7 +29,7 @@ typedef struct View2D {
/** Allowable zoom factor range (only when (keepzoom & V2D_LIMITZOOM)) is set. */
float minzoom, maxzoom;
/** Scroll - scrollbars to display (bitflag). */
/** Scroll - scrollbars to display (bit-flag). */
short scroll;
/** Scroll_ui - temp settings used for UI drawing of scrollers. */
short scroll_ui;

View File

@ -1271,7 +1271,7 @@ static void rna_def_colormanage(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Use Curves", "Use RGB curved for pre-display transformation");
RNA_def_property_update(prop, NC_WINDOW, "rna_ColorManagement_update");
/* ** Colorspace ** */
/* ** Color-space ** */
srna = RNA_def_struct(brna, "ColorManagedInputColorspaceSettings", NULL);
RNA_def_struct_path_func(srna, "rna_ColorManagedInputColorspaceSettings_path");
RNA_def_struct_ui_text(

View File

@ -380,9 +380,7 @@ static bool rna_path_parse(const PointerRNA *ptr,
}
const bool use_id_prop = (*path == '[');
/* custom property lookup ?
* C.object["someprop"]
*/
/* Custom property lookup: e.g. `C.object["someprop"]`. */
if (!curptr.data) {
return false;

View File

@ -180,7 +180,7 @@ typedef enum eWM_GizmoFlagMapTypeUpdateFlag {
/**
* \brief Gizmo tweak flag.
* Bitflag passed to gizmo while tweaking.
* Bit-flag passed to gizmo while tweaking.
*
* \note Gizmos are responsible for handling this #wmGizmo.modal callback.
*/