use keyword argument for template_node_socket()

This commit is contained in:
Philipp Oeser 2018-10-08 09:14:25 +02:00
parent 772c4d6313
commit 7d38654ecd
Notes: blender-bot 2023-02-14 05:14:07 +01:00
Referenced by issue #57100, Redo panel does not work for the 3d cursor
1 changed files with 3 additions and 3 deletions

View File

@ -509,17 +509,17 @@ class NODE_UL_interface_sockets(bpy.types.UIList):
# inputs get icon on the left
if not socket.is_output:
row.template_node_socket(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)
row.template_node_socket(color=color)
elif self.layout_type == 'GRID':
layout.alignment = 'CENTER'
layout.template_node_socket(color)
layout.template_node_socket(color=color)
# Grease Pencil properties