diff options
author | Jacques Lucke <jacques@blender.org> | 2021-10-01 14:20:46 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-10-01 14:21:03 +0300 |
commit | eb3a8fb4e8b173edc2282f6462e219ab8b9c95e2 (patch) | |
tree | 03a329d24254110e670eaa4ffde9e961ae8ea2ce /source/blender/editors/space_node | |
parent | 798e59300280605b8886d9a1f52e1fcf8e5ac008 (diff) |
Fix T91872: incorrect socket inspection on group nodes
This bug was introduced in rBef45399f3be0955ba8.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_draw.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 499ccb8a889..9b243290566 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -1109,13 +1109,13 @@ static void node_socket_draw_nested(const bContext *C, if (!description.is_empty()) { output << TIP_(description.data()) << ".\n\n"; } - - if (socket_inspection_str.has_value()) { - output << *socket_inspection_str; - return BLI_strdup(output.str().c_str()); - } } - output << TIP_("The socket value has not been computed yet"); + if (socket_inspection_str.has_value()) { + output << *socket_inspection_str; + } + else { + output << TIP_("The socket value has not been computed yet"); + } return BLI_strdup(output.str().c_str()); }, data, |