diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-03 03:46:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-03 03:47:02 +0300 |
commit | 17f72be3cb7c50044a10c00e266253f5896f0770 (patch) | |
tree | 611f59d61dce0c40ed16f2d70337ed54879c46a7 /source/blender/editors/space_node | |
parent | 2a868d277e323df32195d42e52d49d80502a6bde (diff) |
Cleanup: spelling in comments, correct outdated comments
Diffstat (limited to 'source/blender/editors/space_node')
4 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc index 982af78dfde..c6fa6c78f05 100644 --- a/source/blender/editors/space_node/drawnode.cc +++ b/source/blender/editors/space_node/drawnode.cc @@ -3294,7 +3294,11 @@ static void node_texture_set_butfunc(bNodeType *ntype) } } -/* ****** init draw callbacks for all tree types, only called in usiblender.c, once ************ */ +/* -------------------------------------------------------------------- */ +/** \name Init Draw Callbacks For All Tree Types + * + * Only called on node initialization, once. + * \{ */ static void node_property_update_default(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr) { @@ -3366,6 +3370,8 @@ static void node_socket_undefined_interface_draw_color(bContext *UNUSED(C), r_color[3] = 1.0f; } +/** \} */ + void ED_node_init_butfuncs(void) { /* Fallback types for undefined tree, nodes, sockets diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc index b98a3fcd59b..90df7e80c38 100644 --- a/source/blender/editors/space_node/node_edit.cc +++ b/source/blender/editors/space_node/node_edit.cc @@ -1472,7 +1472,7 @@ int node_render_changed_exec(bContext *C, wmOperator *UNUSED(op)) RNA_string_set(&op_ptr, "layer", view_layer->name); RNA_string_set(&op_ptr, "scene", sce->id.name + 2); - /* to keep keypositions */ + /* To keep keyframe positions. */ sce->r.scemode |= R_NO_FRAME_UPDATE; WM_operator_name_call(C, "RENDER_OT_render", WM_OP_INVOKE_DEFAULT, &op_ptr); diff --git a/source/blender/editors/space_node/node_group.cc b/source/blender/editors/space_node/node_group.cc index c4880e1b49a..34450016698 100644 --- a/source/blender/editors/space_node/node_group.cc +++ b/source/blender/editors/space_node/node_group.cc @@ -219,7 +219,7 @@ static void animation_basepath_change_free(AnimationBasePathChange *basepath_cha /* returns 1 if its OK */ static int node_group_ungroup(Main *bmain, bNodeTree *ntree, bNode *gnode) { - /* clear new pointers, set in copytree */ + /* Clear new pointers, set in #ntreeCopyTree_ex_new_pointers. */ LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { node->new_node = nullptr; } diff --git a/source/blender/editors/space_node/node_relationships.cc b/source/blender/editors/space_node/node_relationships.cc index 9a931176e42..57dc0b6fef2 100644 --- a/source/blender/editors/space_node/node_relationships.cc +++ b/source/blender/editors/space_node/node_relationships.cc @@ -2042,7 +2042,7 @@ static void node_parent_offset_apply(NodeInsertOfsData *data, bNode *parent, con #define NODE_INSOFS_ANIM_DURATION 0.25f /** - * Callback that applies NodeInsertOfsData.offset_x to a node or its parent, similar + * Callback that applies #NodeInsertOfsData.offset_x to a node or its parent, similar * to node_link_insert_offset_output_chain_cb below, but with slightly different logic */ static bool node_link_insert_offset_frame_chain_cb(bNode *fromnode, |