diff --git a/intern/cycles/kernel/device/metal/kernel.metal b/intern/cycles/kernel/device/metal/kernel.metal index 1dff30d9a04..43f069d0874 100644 --- a/intern/cycles/kernel/device/metal/kernel.metal +++ b/intern/cycles/kernel/device/metal/kernel.metal @@ -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( launch_params_metal, payload, payload.local_object, primitive_id, barycentrics, ray_tmax); } diff --git a/scripts/startup/bl_operators/screen_play_rendered_anim.py b/scripts/startup/bl_operators/screen_play_rendered_anim.py index 1e1aa3ed6dd..65a35a01061 100644 --- a/scripts/startup/bl_operators/screen_play_rendered_anim.py +++ b/scripts/startup/bl_operators/screen_play_rendered_anim.py @@ -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: diff --git a/source/blender/editors/armature/armature_intern.h b/source/blender/editors/armature/armature_intern.h index 32e4c57e75a..f7b28566293 100644 --- a/source/blender/editors/armature/armature_intern.h +++ b/source/blender/editors/armature/armature_intern.h @@ -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); diff --git a/source/blender/editors/interface/interface_draw.cc b/source/blender/editors/interface/interface_draw.cc index b9787c33436..fa9631e2d86 100644 --- a/source/blender/editors/interface/interface_draw.cc +++ b/source/blender/editors/interface/interface_draw.cc @@ -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); diff --git a/source/blender/editors/space_buttons/buttons_context.cc b/source/blender/editors/space_buttons/buttons_context.cc index 14389cc61a4..fd91df247f8 100644 --- a/source/blender/editors/space_buttons/buttons_context.cc +++ b/source/blender/editors/space_buttons/buttons_context.cc @@ -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(path->ptr[path->len - 1].data); diff --git a/source/blender/editors/space_outliner/outliner_tools.cc b/source/blender/editors/space_outliner/outliner_tools.cc index 01540ed3f7e..23051d5a544 100644 --- a/source/blender/editors/space_outliner/outliner_tools.cc +++ b/source/blender/editors/space_outliner/outliner_tools.cc @@ -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)) { diff --git a/source/blender/editors/transform/transform_snap.cc b/source/blender/editors/transform/transform_snap.cc index 8715d518668..49323407ca6 100644 --- a/source/blender/editors/transform/transform_snap.cc +++ b/source/blender/editors/transform/transform_snap.cc @@ -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, diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index c9f89ac65d7..94f65a415ea 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -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. */ diff --git a/source/blender/makesdna/DNA_node_tree_interface_types.h b/source/blender/makesdna/DNA_node_tree_interface_types.h index 00334842f02..5b8ca8efc96 100644 --- a/source/blender/makesdna/DNA_node_tree_interface_types.h +++ b/source/blender/makesdna/DNA_node_tree_interface_types.h @@ -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 items_src, int flag); /** Remove all items from the panel. */ diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h index d4b43560309..a488203480e 100644 --- a/source/blender/makesdna/DNA_sequence_types.h +++ b/source/blender/makesdna/DNA_sequence_types.h @@ -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 */