Fix T91872: incorrect socket inspection on group nodes

This bug was introduced in rBef45399f3be0955ba8.
This commit is contained in:
Jacques Lucke 2021-10-01 13:20:46 +02:00
parent 798e593002
commit eb3a8fb4e8
Notes: blender-bot 2023-02-14 08:10:06 +01:00
Referenced by issue #91872, Socket inspection of group input/output attributes
1 changed files with 6 additions and 6 deletions

View File

@ -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,