[Bf-blender-cvs] [ba1fcdf41a6] functions: give test node a poll function
Jacques Lucke
noreply at git.blender.org
Thu Feb 13 18:59:04 CET 2020
Commit: ba1fcdf41a68ce2ae97b10c1b29251d1691fb0e2
Author: Jacques Lucke
Date: Thu Feb 13 18:33:29 2020 +0100
Branches: functions
https://developer.blender.org/rBba1fcdf41a68ce2ae97b10c1b29251d1691fb0e2
give test node a poll function
===================================================================
M source/blender/simulations/nodes/my_test_node.cc
===================================================================
diff --git a/source/blender/simulations/nodes/my_test_node.cc b/source/blender/simulations/nodes/my_test_node.cc
index e271da8b1c6..8c4bbf79dd0 100644
--- a/source/blender/simulations/nodes/my_test_node.cc
+++ b/source/blender/simulations/nodes/my_test_node.cc
@@ -66,6 +66,7 @@ void register_node_type_my_test_node()
ntype.type = NODE_CUSTOM;
ntype.initfunc = init_node;
+ ntype.poll = [](bNodeType *UNUSED(ntype), bNodeTree *UNUSED(ntree)) { return true; };
nodeRegisterType(&ntype);
}
More information about the Bf-blender-cvs
mailing list