[Bf-blender-cvs] [6a8985dfa5e] functions: utility to map multiple sockets
Jacques Lucke
noreply at git.blender.org
Tue Jul 16 18:20:11 CEST 2019
Commit: 6a8985dfa5e0c22119ea737ef09017bcf687f9bd
Author: Jacques Lucke
Date: Tue Jul 16 13:22:58 2019 +0200
Branches: functions
https://developer.blender.org/rB6a8985dfa5e0c22119ea737ef09017bcf687f9bd
utility to map multiple sockets
===================================================================
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 fc68a7851e7..8f0a640e8f1 100644
--- a/source/blender/functions/core/data_flow_graph.hpp
+++ b/source/blender/functions/core/data_flow_graph.hpp
@@ -203,6 +203,15 @@ class DataFlowGraph : public RefCountedBase {
return DFGraphSocket(true, output_socket_indices.lookup(dfgb_socket));
}
}
+
+ SmallVector<DFGraphSocket> map_sockets(ArrayRef<DFGB_Socket> dfgb_sockets)
+ {
+ SmallVector<DFGraphSocket> sockets;
+ for (auto socket : dfgb_sockets) {
+ sockets.append(this->map_socket(socket));
+ }
+ return sockets;
+ }
};
struct BuildResult {
More information about the Bf-blender-cvs
mailing list