Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-02-18 06:06:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-18 18:19:53 +0300
commitaa2da44b829794beacb1b75b2dcd63ae156b5865 (patch)
treec52e515f1ad787aa6d4f5f6ea6fc1094d302faa3 /source/blender/editors
parente79916eb47a88cfb8dd8b238fd7e86d90b3459be (diff)
Cleanup: use doxy sections
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_node/node_add.c37
1 files changed, 32 insertions, 5 deletions
diff --git a/source/blender/editors/space_node/node_add.c b/source/blender/editors/space_node/node_add.c
index 699e5c1d165..e0de2393917 100644
--- a/source/blender/editors/space_node/node_add.c
+++ b/source/blender/editors/space_node/node_add.c
@@ -54,6 +54,10 @@
#include "node_intern.h" /* own include */
+/* -------------------------------------------------------------------- */
+/** \name Utilities
+ * \{ */
+
/**
* XXX Does some additional initialization on top of #nodeAddNode
* Can be used with both custom and static nodes,
@@ -93,7 +97,12 @@ bNode *node_add_node(const bContext *C, const char *idname, int type, float locx
return node;
}
-/* ********************** Add reroute operator ***************** */
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Add Reroute Operator
+ * \{ */
+
static bool add_reroute_intersect_check(bNodeLink *link,
float mcoords[][2],
int tot,
@@ -309,7 +318,11 @@ void NODE_OT_add_reroute(wmOperatorType *ot)
RNA_def_int(ot->srna, "cursor", WM_CURSOR_CROSS, 0, INT_MAX, "Cursor", "", 0, INT_MAX);
}
-/* ****************** Add Node Group Operator ******************* */
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Add Node Group Operator
+ * \{ */
static bNodeTree *node_add_group_get_and_poll_group_node_tree(Main *bmain,
wmOperator *op,
@@ -402,7 +415,11 @@ void NODE_OT_add_group(wmOperatorType *ot)
RNA_def_string(ot->srna, "name", "Mask", MAX_ID_NAME - 2, "Name", "Data-block name to assign");
}
-/* ****************** Add File Node Operator ******************* */
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Add File Node Operator
+ * \{ */
static bool node_add_file_poll(bContext *C)
{
@@ -510,7 +527,11 @@ void NODE_OT_add_file(wmOperatorType *ot)
RNA_def_string(ot->srna, "name", "Image", MAX_ID_NAME - 2, "Name", "Data-block name to assign");
}
-/* ****************** Add Mask Node Operator ******************* */
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Add Mask Node Operator
+ * \{ */
static bool node_add_mask_poll(bContext *C)
{
@@ -571,7 +592,11 @@ void NODE_OT_add_mask(wmOperatorType *ot)
RNA_def_string(ot->srna, "name", "Mask", MAX_ID_NAME - 2, "Name", "Data-block name to assign");
}
-/********************** New node tree operator *********************/
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name New Node Tree Operator
+ * \{ */
static int new_node_tree_exec(bContext *C, wmOperator *op)
{
@@ -659,3 +684,5 @@ void NODE_OT_new_node_tree(wmOperatorType *ot)
RNA_def_enum_funcs(prop, new_node_tree_type_itemf);
RNA_def_string(ot->srna, "name", "NodeTree", MAX_ID_NAME - 2, "Name", "");
}
+
+/** \} */