From 66a021158e4c038ad691843ef59cbed87f79c8f9 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Tue, 21 Sep 2021 00:08:02 -0700 Subject: [PATCH] rewrite valuehint init Hopefully macOS will like this --- app/common/xmlutils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/common/xmlutils.cpp b/app/common/xmlutils.cpp index b7cff1a3b..e46b91236 100644 --- a/app/common/xmlutils.cpp +++ b/app/common/xmlutils.cpp @@ -33,16 +33,18 @@ void XMLConnectNodes(const XMLNodeData &xml_node_data, MultiUndoCommand *command Node *out = xml_node_data.node_ptrs.value(con.output_node); if (out) { + Node::ValueHint hint = { QVector(), -1, con.output_param }; + if (command) { command->add_child(new NodeEdgeAddCommand(out, con.input)); /// Deprecated: backwards compatibility only - command->add_child(new NodeSetValueHintCommand(con.input, {{}, -1, con.output_param})); + command->add_child(new NodeSetValueHintCommand(con.input, hint)); } else { Node::ConnectEdge(out, con.input); /// Deprecated: backwards compatibility only - con.input.node()->SetValueHintForInput(con.input.input(), {{}, -1, con.output_param}, con.input.element()); + con.input.node()->SetValueHintForInput(con.input.input(), hint, con.input.element()); } } }