소스 검색

UI: Constant Input now has a Circle-Dot socket

Joseph Brandenburg 6 달 전
부모
커밋
c6381dbc57
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      utilities.py

+ 2 - 0
utilities.py

@@ -159,6 +159,7 @@ def do_relink(node, s, map, in_out='INPUT', parent_name = ''):
                 else:
                     s = node.outputs.new(sock_type, name, identifier=interface_socket.identifier)
                 if parent_name == 'Array': s.display_shape='SQUARE_DOT'
+                if parent_name == 'Constant': s.display_shape='CIRCLE_DOT'
                 # then move it up and delete the other link.
                 # this also needs to modify the interface of the node tree.
             if isinstance(sub_val, NodeSocket):
@@ -208,6 +209,7 @@ def relink_socket_map_add_socket(node, socket_collection, item, in_out=None,):
     else:
         s = socket_collection.new(type=item.socket_type, name=item.name, identifier=item.identifier)
     if item.parent.name == 'Array': s.display_shape = 'SQUARE_DOT'
+    elif item.parent.name == 'Constant': s.display_shape='CIRCLE_DOT'
     return s
 
 # TODO REFACTOR THIS