Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2023-09-06 14:23:01 +10:00
parent b1526dd2c6
commit 1f01a64403
10 changed files with 17 additions and 16 deletions

View File

@@ -53,7 +53,7 @@ TReturn metalrt_local_hit(constant KernelParamsMetal &launch_params_metal,
if ((object != payload.local_object) || context.intersection_skip_self_local(payload.self, prim))
{
/* Only intersect with matching object and skip self-intersecton. */
/* Only intersect with matching object and skip self-intersection. */
result.accept = false;
result.continue_search = true;
return result;
@@ -132,10 +132,10 @@ __anyhit__cycles_metalrt_local_hit_tri_prim(
float2 barycentrics [[barycentric_coord]],
float ray_tmax [[distance]])
{
// instance_id, aka the user_id has been removed. If we take this function we optimized the
// SSS for starting traversal from a primitive acceleration structure instead of the root of the
// global AS. this means we will always be intersecting the correct object no need for the userid
// to check
/* instance_id, aka the user_id has been removed. If we take this function we optimized the
* SSS for starting traversal from a primitive acceleration structure instead of the root of the
* global AS. this means we will always be intersecting the correct object no need for the
* user-id to check */
return metalrt_local_hit<TriangleIntersectionResult, METALRT_HIT_TRIANGLE>(
launch_params_metal, payload, payload.local_object, primitive_id, barycentrics, ray_tmax);
}

View File

@@ -26,7 +26,7 @@ def guess_player_path(preset):
import winreg
# NOTE: This can be removed if/when DJV adds their executable to the PATH.
# See issue 449 on their github project page.
# See issue 449 on their GITHUB project page.
reg_path = r"SOFTWARE\Classes\djv\shell\open\command"
reg_value = None
try:

View File

@@ -206,8 +206,9 @@ void poseAnim_mapping_autoKeyframe(struct bContext *C,
float cframe);
/**
* Find the next F-Curve for a PoseChannel with matching path...
* - path is not just the pfl rna_path, since that path doesn't have property info yet.
* Find the next F-Curve for a PoseChannel with matching path.
* - `path` is not just the #tPChanFCurveLink (`pfl`) rna_path,
* since that path doesn't have property info yet.
*/
LinkData *poseAnim_mapping_getNextFCurve(ListBase *fcuLinks, LinkData *prev, const char *path);

View File

@@ -1014,7 +1014,7 @@ void ui_draw_but_VECTORSCOPE(ARegion * /*region*/,
static void ui_draw_colorband_handle_tri(uint pos, float x1, float y1, float halfwidth)
{
/* Halfwidth equals height for better AA with 45 degree slope. */
/* Half-width equals height for better AA with 45 degree slope. */
immBegin(GPU_PRIM_TRIS, 3);
immVertex2f(pos, x1 + halfwidth, y1);
immVertex2f(pos, x1, y1 + halfwidth);

View File

@@ -454,7 +454,7 @@ static bool buttons_context_path_brush(const bContext *C, ButsContextPath *path)
if (RNA_struct_is_a(ptr->type, &RNA_Brush)) {
return true;
}
/* if we have a scene, use the toolsettings brushes */
/* If we have a scene, use the tool-settings brushes. */
if (buttons_context_path_scene(path)) {
Scene *scene = static_cast<Scene *>(path->ptr[path->len - 1].data);

View File

@@ -2280,7 +2280,7 @@ static void constraint_fn(int event, TreeElement *te, TreeStoreElem * /*tselem*/
/* there's no active constraint now, so make sure this is the case */
BKE_constraints_active_set(&ob->constraints, nullptr);
/* needed to set the flags on posebones correctly */
/* Needed to set the flags on pose-bones correctly. */
ED_object_constraint_update(bmain, ob);
WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_REMOVED, ob);
@@ -3641,7 +3641,7 @@ static int outliner_operator_menu(bContext *C, const char *opname)
uiPopupMenu *pup = UI_popup_menu_begin(C, WM_operatortype_name(ot, nullptr).c_str(), ICON_NONE);
uiLayout *layout = UI_popup_menu_layout(pup);
/* set this so the default execution context is the same as submenus */
/* Set this so the default execution context is the same as sub-menus. */
uiLayoutSetOperatorContext(layout, WM_OP_INVOKE_REGION_WIN);
if (WM_operator_poll(C, ot)) {

View File

@@ -129,7 +129,7 @@ bool validSnap(const TransInfo *t)
void transform_snap_flag_from_modifiers_set(TransInfo *t)
{
if (ELEM(t->spacetype, SPACE_GRAPH, SPACE_ACTION, SPACE_NLA)) {
/* Those spacetypes define their own invert behaviour instead of toggling it on/off. */
/* Those space-types define their own invert behavior instead of toggling it on/off. */
return;
}
SET_FLAG_FROM_TEST(t->tsnap.flag,

View File

@@ -666,7 +666,7 @@ typedef enum eBConstraint_Types {
/* bConstraint->flag */
/* flags 0x2 (1 << 1) and 0x8 (1 << 3) were used in past */
/* flag 0x20 (1 << 5) was used to indicate that a constraint was evaluated
* using a 'local' hack for posebones only. */
* using a 'local' hack for pose-bones only. */
typedef enum eBConstraint_Flags {
#ifdef DNA_DEPRECATED_ALLOW
/* Expansion for old box constraint layouts. Just for versioning. */

View File

@@ -161,7 +161,7 @@ typedef struct bNodeTreeInterfacePanel {
/**
* Create a copy of items in the span and add them to the interface.
* \note This does not generate new identifiers for items, use only for identital copies.
* \note This does not generate new identifiers for items, use only for identical copies.
*/
void copy_from(blender::Span<const bNodeTreeInterfaceItem *> items_src, int flag);
/** Remove all items from the panel. */

View File

@@ -216,7 +216,7 @@ typedef struct Sequence {
/* pointers for effects: */
struct Sequence *seq1, *seq2, *seq3;
/** List of strips for metastrips. */
/** List of strips for meta-strips. */
ListBase seqbase;
ListBase channels; /* SeqTimelineChannel */