[Bf-blender-cvs] [edc0c792046] simulation-tree: fix

Jacques Lucke noreply at git.blender.org
Wed Feb 19 16:12:23 CET 2020


Commit: edc0c79204638c255cd0b3d7b4f4653ad34cca2f
Author: Jacques Lucke
Date:   Wed Feb 19 13:26:27 2020 +0100
Branches: simulation-tree
https://developer.blender.org/rBedc0c79204638c255cd0b3d7b4f4653ad34cca2f

fix

===================================================================

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 5b6734585e3..c0995a21c81 100644
--- a/source/blender/simulations/nodes/my_test_node.cc
+++ b/source/blender/simulations/nodes/my_test_node.cc
@@ -345,6 +345,10 @@ static void setup_node_base(bNodeType *ntype,
 
   callbacks->m_declare_node = declare_fn;
   callbacks->m_init_storage = []() { return nullptr; };
+  callbacks->m_free_storage = [](void *UNUSED(storage)) {};
+  callbacks->m_draw = [](struct uiLayout *UNUSED(layout),
+                         struct bContext *UNUSED(C),
+                         struct PointerRNA *UNUSED(ptr)) {};
 
   ntype->poll = [](bNodeType *UNUSED(ntype), bNodeTree *UNUSED(ntree)) { return true; };
   ntype->initfunc = init_node;



More information about the Bf-blender-cvs mailing list