[Bf-blender-cvs] [782b3ec1c5c] simulation-tree: add userdata to bNodeType
Jacques Lucke
noreply at git.blender.org
Mon Feb 17 18:16:37 CET 2020
Commit: 782b3ec1c5cef6d1ebdad5e2cb81c263b4feb3be
Author: Jacques Lucke
Date: Mon Feb 17 16:49:03 2020 +0100
Branches: simulation-tree
https://developer.blender.org/rB782b3ec1c5cef6d1ebdad5e2cb81c263b4feb3be
add userdata to bNodeType
===================================================================
M source/blender/blenkernel/BKE_node.h
===================================================================
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h
index 9f64abad97d..05c0a355320 100644
--- a/source/blender/blenkernel/BKE_node.h
+++ b/source/blender/blenkernel/BKE_node.h
@@ -256,6 +256,10 @@ typedef struct bNodeType {
/* Update the internal links list, for muting and disconnect operators. */
void (*update_internal_links)(struct bNodeTree *, struct bNode *node);
+ /* Custom data that can be used in callbacks. */
+ void *userdata;
+ void (*free_userdata)(void *userdata);
+
/* **** execution callbacks **** */
NodeInitExecFunction initexecfunc;
NodeFreeExecFunction freeexecfunc;
More information about the Bf-blender-cvs
mailing list