[Bf-blender-cvs] [c55affc0324] temp-socket-inspection: improve message when socket value is not available

Jacques Lucke noreply at git.blender.org
Thu Jul 8 10:00:48 CEST 2021


Commit: c55affc032447fe533535994554d3071e42b0548
Author: Jacques Lucke
Date:   Thu Jul 8 10:00:01 2021 +0200
Branches: temp-socket-inspection
https://developer.blender.org/rBc55affc032447fe533535994554d3071e42b0548

improve message when socket value is not available

===================================================================

M	source/blender/editors/space_node/node_draw.cc

===================================================================

diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index 6da2fa3351b..c6d7cf20212 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -985,7 +985,9 @@ static void node_socket_draw_nested(const bContext *C,
         if (str.has_value()) {
           return BLI_strdup(str->c_str());
         }
-        return BLI_strdup("Unknown");
+        return BLI_strdup(
+            "The socket value has not been computed yet because it was not necessary for the "
+            "final output");
       },
       data,
       MEM_freeN);



More information about the Bf-blender-cvs mailing list