소스 검색

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") ) ):