Ver código fonte

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 meses atrás
pai
commit
786df1c488
1 arquivos alterados com 1 adições e 1 exclusões
  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") ) ):