Commit: 92a16d019302f812ffe6dc91b36da412ca1bad7d Author: Hans Goudey Date: Thu Dec 29 13:30:23 2022 -0500 Branches: temp-nodes-group-declarations https://developer.blender.org/rB92a16d019302f812ffe6dc91b36da412ca1bad7d
Merge branch 'master' into temp-nodes-group-declarations =================================================================== =================================================================== diff --cc source/blender/blenkernel/BKE_node.h index 5ee3a8410a4,266ee0d2988..a03ac95e408 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@@ -303,12 -305,12 +305,12 @@@ typedef struct bNodeType /** Can this node be added to a node tree? * \param r_disabled_hint: See `poll()`. */ - bool (*poll_instance)(struct bNode *node, - struct bNodeTree *nodetree, + bool (*poll_instance)(const struct bNode *node, + const struct bNodeTree *nodetree, const char **r_disabled_hint); - /* optional handling of link insertion */ - void (*insert_link)(struct bNodeTree *ntree, struct bNode *node, struct bNodeLink *link); + /* optional handling of link insertion. Returns false if the link shouldn't be created. */ + bool (*insert_link)(struct bNodeTree *ntree, struct bNode *node, struct bNodeLink *link); void (*free_self)(struct bNodeType *ntype); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs