Browse Source

Fix: text boxes dissapear if name has been set

this is a consequence of the last commit. I need to test more.
Joseph Brandenburg 8 months ago
parent
commit
786df1c488
1 changed files with 1 additions and 1 deletions
  1. 1 1
      socket_definitions.py

+ 1 - 1
socket_definitions.py

@@ -307,7 +307,7 @@ def ChooseDraw(self, context, layout, node, text, icon = "NONE", use_enum=True,
     # TEXT ONLY
     if self.node.bl_idname in ["NodeGroupInput", "NodeGroupOutput"]:
         layout.label(text=text)
-    elif hasattr(self, "display_text") and self.display_text:
+    elif hasattr(self, "display_text") and self.display_text and self.is_linked:
             layout.label(text=self.display_text)
     else:
         if ( (hasattr(self, "text_only")) and (getattr(self, "text_only") ) ):