[Bf-blender-cvs] [22636565260] functions: add resource via VTreeDataGraphBuilder

Jacques Lucke noreply at git.blender.org
Thu Sep 26 18:08:12 CEST 2019


Commit: 2263656526079afa6cb852d394d59810b3af8354
Author: Jacques Lucke
Date:   Thu Sep 26 17:57:02 2019 +0200
Branches: functions
https://developer.blender.org/rB2263656526079afa6cb852d394d59810b3af8354

add resource via VTreeDataGraphBuilder

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

M	source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.hpp

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

diff --git a/source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.hpp b/source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.hpp
index 0f829cf3aa6..f9f6380f59f 100644
--- a/source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.hpp
+++ b/source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.hpp
@@ -41,6 +41,11 @@ class VTreeDataGraphBuilder {
   BuilderNode *insert_function(SharedFunction &fn, VirtualNode *vnode);
   BuilderNode *insert_placeholder(VirtualNode *vnode);
 
+  template<typename T> void add_resource(std::unique_ptr<T> resource, const char *name)
+  {
+    m_graph_builder.add_resource(std::move(resource), name);
+  }
+
   void insert_link(BuilderOutputSocket *from, BuilderInputSocket *to);
   void insert_links(ArrayRef<BuilderOutputSocket *> from, ArrayRef<BuilderInputSocket *> to);



More information about the Bf-blender-cvs mailing list