Skip to content

Commit 8f9e52a

Browse files
committed
keep back compatibility between "=" and "{=}"
1 parent 83fce13 commit 8f9e52a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/behaviortree_cpp/tree_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ inline Result TreeNode::setOutput(const std::string& key, const T& value)
502502
key, "]"));
503503
}
504504
StringView remapped_key = remap_it->second;
505-
if (remapped_key == "{=}")
505+
if (remapped_key == "{=}" || remapped_key == "=")
506506
{
507507
config().blackboard->set(static_cast<std::string>(key), value);
508508
return {};

src/tree_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ StringView TreeNode::stripBlackboardPointer(StringView str)
394394
Expected<StringView> TreeNode::getRemappedKey(StringView port_name,
395395
StringView remapped_port)
396396
{
397-
if (remapped_port == "{=}")
397+
if (remapped_port == "{=}" || remapped_port == "=")
398398
{
399399
return {port_name};
400400
}

0 commit comments

Comments
 (0)