[Bf-blender-cvs] [de72dca] master: Fix for inline documentation of FOREACH_NODETREE.

Lukas Tönne noreply at git.blender.org
Wed May 11 10:53:23 CEST 2016


Commit: de72dcadbbea1fe8689f76d1a579066abb22944b
Author: Lukas Tönne
Date:   Wed May 11 10:52:41 2016 +0200
Branches: master
https://developer.blender.org/rBde72dcadbbea1fe8689f76d1a579066abb22944b

Fix for inline documentation of FOREACH_NODETREE.

Was missing id macro variable.

===================================================================

M	source/blender/blenkernel/BKE_node.h

===================================================================

diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h
index 2ece0f7..76e4956 100644
--- a/source/blender/blenkernel/BKE_node.h
+++ b/source/blender/blenkernel/BKE_node.h
@@ -642,12 +642,12 @@ void BKE_node_tree_unlink_id(ID *id, struct bNodeTree *ntree);
  * Examples:
  *
  * \code{.c}
- * FOREACH_NODETREE(bmain, nodetree) {
+ * FOREACH_NODETREE(bmain, nodetree, id) {
  *     if (id == nodetree)
  *         printf("This is a linkable node tree");
  * } FOREACH_NODETREE_END
  *
- * FOREACH_NODETREE(bmain, nodetree) {
+ * FOREACH_NODETREE(bmain, nodetree, id) {
  *     if (nodetree->idname == "ShaderNodeTree")
  *         printf("This is a shader node tree);
  *     if (GS(id) == ID_MA)




More information about the Bf-blender-cvs mailing list