[Bf-blender-cvs] [c21f39578f5] functions: easily create dot graph from vtree data graph builder

Jacques Lucke noreply at git.blender.org
Fri Aug 2 19:15:19 CEST 2019


Commit: c21f39578f56bfdfcaedff686e13bfe318ea1e91
Author: Jacques Lucke
Date:   Fri Aug 2 17:42:45 2019 +0200
Branches: functions
https://developer.blender.org/rBc21f39578f56bfdfcaedff686e13bfe318ea1e91

easily create dot graph from vtree data graph builder

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

M	source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.cpp
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.cpp b/source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.cpp
index 3a381307b7b..11a8b7e6970 100644
--- a/source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.cpp
+++ b/source/blender/functions/frontends/data_flow_nodes/vtree_data_graph_builder.cpp
@@ -293,5 +293,15 @@ bool VTreeDataGraphBuilder::has_data_socket(VirtualNode *vnode) const
   return false;
 }
 
+std::string VTreeDataGraphBuilder::to_dot()
+{
+  return m_graph_builder.to_dot();
+}
+
+void VTreeDataGraphBuilder::to_dot__clipboard()
+{
+  m_graph_builder.to_dot__clipboard();
+}
+
 }  // namespace DataFlowNodes
 }  // namespace FN
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 15b0fefd630..feb0e73f643 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
@@ -71,6 +71,9 @@ class VTreeDataGraphBuilder {
   /* Query RNA */
   SharedType &type_from_rna(PointerRNA &rna, StringRefNull prop_name) const;
 
+  std::string to_dot();
+  void to_dot__clipboard();
+
  private:
   void initialize_type_by_vsocket_map();
   bool check_if_sockets_are_mapped(VirtualNode *vnode, ArrayRef<VirtualSocket *> vsockets) const;



More information about the Bf-blender-cvs mailing list