[Bf-blender-cvs] [5366c5c827c] functions: utility functions to access data flow graph

Jacques Lucke noreply at git.blender.org
Fri Jul 12 14:50:23 CEST 2019


Commit: 5366c5c827c50cf474cb50108e31625722c932c3
Author: Jacques Lucke
Date:   Fri Jul 12 10:27:52 2019 +0200
Branches: functions
https://developer.blender.org/rB5366c5c827c50cf474cb50108e31625722c932c3

utility functions to access data flow graph

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

M	source/blender/functions/core/data_flow_graph.hpp

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

diff --git a/source/blender/functions/core/data_flow_graph.hpp b/source/blender/functions/core/data_flow_graph.hpp
index 6778189afa9..fc68a7851e7 100644
--- a/source/blender/functions/core/data_flow_graph.hpp
+++ b/source/blender/functions/core/data_flow_graph.hpp
@@ -244,6 +244,16 @@ class DataFlowGraph : public RefCountedBase {
     return m_nodes[node_id].outputs_start + output_index;
   }
 
+  DFGraphSocket socket_of_node_input(uint node_id, uint input_index)
+  {
+    return DFGraphSocket(false, this->id_of_node_input(node_id, input_index));
+  }
+
+  DFGraphSocket socket_of_node_output(uint node_id, uint output_index)
+  {
+    return DFGraphSocket(true, this->id_of_node_output(node_id, output_index));
+  }
+
   Range<uint> input_ids_of_node(uint node_id) const
   {
     MyNode &node = m_nodes[node_id];



More information about the Bf-blender-cvs mailing list