From 542e5f4f7b40a05ba19c8ef10e1abd9e2b2049fe Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 26 Apr 2021 21:59:17 +1000 Subject: [PATCH] nodes: actually use array value rather than hardcoding to true Wow. --- app/node/traverser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/node/traverser.cpp b/app/node/traverser.cpp index 0f9f6f88c..a63a38d55 100644 --- a/app/node/traverser.cpp +++ b/app/node/traverser.cpp @@ -85,8 +85,9 @@ NodeValueTable NodeTraverser::ProcessInput(const Node* node, const QString& inpu // Store node QVariant return_val; + bool is_array = node->InputIsArray(input); - if (node->InputIsArray(input)) { + if (is_array) { // Value is an array, we will return a list of NodeValueTables QVector array_tbl(node->InputArraySize(input)); @@ -115,7 +116,7 @@ NodeValueTable NodeTraverser::ProcessInput(const Node* node, const QString& inpu } NodeValueTable return_table; - return_table.Push(node->GetInputDataType(input), return_val, node, true); + return_table.Push(node->GetInputDataType(input), return_val, node, is_array); return return_table; }