Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-02-13 20:33:29 +0300
committerJacques Lucke <jacques@blender.org>2020-02-13 20:33:29 +0300
commitba1fcdf41a68ce2ae97b10c1b29251d1691fb0e2 (patch)
treea07feb5e94e0624b0eecd1feebfad0c3c230a513 /source/blender/simulations/nodes/my_test_node.cc
parent9906e5313b8dd933505954a1702f7a39695ad37c (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.cc1
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);
}