UI: Draw socket type colors on the left in group sockets list
Previously the colors were on the right for outputs, but this is now unecessary because of the organization in separate panels after rBb1d1a58c77fb1658.
This commit is contained in:
parent
40d391fa60
commit
b75552ebbb
|
@ -678,16 +678,8 @@ class NODE_UL_interface_sockets(bpy.types.UIList):
|
|||
if self.layout_type in {'DEFAULT', 'COMPACT'}:
|
||||
row = layout.row(align=True)
|
||||
|
||||
# inputs get icon on the left
|
||||
if not socket.is_output:
|
||||
row.template_node_socket(color=color)
|
||||
|
||||
row.template_node_socket(color=color)
|
||||
row.prop(socket, "name", text="", emboss=False, icon_value=icon)
|
||||
|
||||
# outputs get icon on the right
|
||||
if socket.is_output:
|
||||
row.template_node_socket(color=color)
|
||||
|
||||
elif self.layout_type == 'GRID':
|
||||
layout.alignment = 'CENTER'
|
||||
layout.template_node_socket(color=color)
|
||||
|
|
Loading…
Reference in New Issue