Commit: 01d7211380f513cf8f1f9c7cae923b1d19b26ebc
Author: Jacques Lucke
Date: Tue Oct 26 17:53:29 2021 +0200
Branches: master
https://developer.blender.org/rB01d7211380f513cf8f1f9c7cae923b1d19b26ebc
Fix T92505: previewing specific node outputs did not work anymore
This was missing from my refactor in rB5bfe09df2244cb9de0b6554a378eecef77b1e75d.
===================================================================
M source/blender/editors/space_node/node_relationships.cc
===================================================================
diff --git a/source/blender/editors/space_node/node_relationships.cc
b/source/blender/editors/space_node/node_relationships.cc
index 459608a67ea..76aad684b4c 100644
--- a/source/blender/editors/space_node/node_relationships.cc
+++ b/source/blender/editors/space_node/node_relationships.cc
@@ -768,6 +768,14 @@ static const NodeRef *get_existing_viewer(const
NodeTreeRef &tree)
static const OutputSocketRef *find_output_socket_to_be_viewed(const NodeRef
*active_viewer_node,
const NodeRef
&node_to_view)
{
+ /* Check if any of the output sockets is selected, which is the case when
the user just clicked
+ * on the socket. */
+ for (const OutputSocketRef *output_socket : node_to_view.outputs()) {
+ if (output_socket->bsocket()->flag & SELECT) {
+ return output_socket;
+ }
+ }
+
const OutputSocketRef *last_socket_linked_to_viewer = nullptr;
if (active_viewer_node != nullptr) {
for (const OutputSocketRef *output_socket : node_to_view.outputs()) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs