diff options
author | Jacques Lucke <jacques@blender.org> | 2020-02-13 20:33:29 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-02-13 20:33:29 +0300 |
commit | ba1fcdf41a68ce2ae97b10c1b29251d1691fb0e2 (patch) | |
tree | a07feb5e94e0624b0eecd1feebfad0c3c230a513 /source/blender/simulations/nodes/my_test_node.cc | |
parent | 9906e5313b8dd933505954a1702f7a39695ad37c (diff) |
give test node a poll function
Diffstat (limited to 'source/blender/simulations/nodes/my_test_node.cc')
-rw-r--r-- | source/blender/simulations/nodes/my_test_node.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |