Commit: 26ce24b92837ab13bb0455267e6152bd65fe5b22 Author: Jacques Lucke Date: Sun Apr 28 19:12:26 2019 +0200 Branches: functions https://developer.blender.org/rB26ce24b92837ab13bb0455267e6152bd65fe5b22
better type names =================================================================== M source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp =================================================================== diff --git a/source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp b/source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp index cfdf627d0e2..d10f5d7235e 100644 --- a/source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp +++ b/source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp @@ -233,11 +233,11 @@ class ExecuteFGraph : public TupleCallBody { } } - struct LazyStateOnStack { + struct LazyStateOfNode { uint node_id; LazyState state; - LazyStateOnStack(uint node_id, LazyState state) : node_id(node_id), state(state) + LazyStateOfNode(uint node_id, LazyState state) : node_id(node_id), state(state) { } }; @@ -254,12 +254,15 @@ class ExecuteFGraph : public TupleCallBody { true, \ false); + using SocketsToComputeStack = SmallStack<DFGraphSocket, 64>; + using LazyStatesStack = SmallStack<LazyStateOfNode>; + void evaluate_graph_to_compute_outputs(SocketValueStorage &storage, Tuple &fn_out, ExecutionContext &ctx) const { - SmallStack<DFGraphSocket, 64> sockets_to_compute; - SmallStack<LazyStateOnStack> lazy_states; + SocketsToComputeStack sockets_to_compute; + LazyStatesStack lazy_states; for (auto socket : m_fgraph.outputs()) { sockets_to_compute.push(socket); @@ -329,7 +332,7 @@ class ExecuteFGraph : public TupleCallBody { sockets_to_compute.push(DFGraphSocket::FromInput(input_id)); } } - lazy_states.push(LazyStateOnStack(node_id, state)); + lazy_states.push(LazyStateOfNode(node_id, state)); } } } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs