浏览代码

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 月之前
父节点
当前提交
786df1c488
共有 1 个文件被更改,包括 1 次插入1 次删除
  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") ) ):