diff options
author | rtk0c <[email protected]> | 2021-04-17 17:31:47 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-04-17 17:31:47 -0700 |
commit | dca1286661f61e51943863de8ce68849a9578363 (patch) | |
tree | ada6c32fdf9ebf11a2b302398e8de28f57e3de8a /core/src/Model/WorkflowNodes.cpp | |
parent | 4e5730e1fcef150ce2f13f52a278890589ca96ad (diff) |
Initial work on one-to-many/many-to-one connections
Diffstat (limited to 'core/src/Model/WorkflowNodes.cpp')
-rw-r--r-- | core/src/Model/WorkflowNodes.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/Model/WorkflowNodes.cpp b/core/src/Model/WorkflowNodes.cpp index 8c315b6..14f72cb 100644 --- a/core/src/Model/WorkflowNodes.cpp +++ b/core/src/Model/WorkflowNodes.cpp @@ -5,6 +5,7 @@ #include "Utils/Variant.hpp" #include <cassert> +#include <utility> #include <variant> WorkflowNode::Kind NumericOperationNode::OperationTypeToNodeKind(OperationType type) { @@ -68,7 +69,9 @@ void NumericOperationNode::Evaluate(WorkflowEvaluationContext& ctx) { default: return; } - ctx.SetConnectionValue(mOutputs[0], res); + auto value = std::make_unique<NumericValue>(); + value->SetValue(res); + ctx.SetConnectionValue(mOutputs[0], std::move(value)); } bool NumericExpressionNode::IsInstance(const WorkflowNode* node) { |