NodeSocket RNA property 'in_out' renamed as boolean 'is_output'. This is a more usefu...
[blender-staging.git] / release / scripts / startup / bl_ui / space_node.py
index 843bafabdec4361f853ec0bbfc3962fca44af9b2..1721eacd8ac2a7fdf9529f1916dc1d60d1b75182 100644 (file)
@@ -407,13 +407,13 @@ class NODE_UL_interface_sockets(bpy.types.UIList):
             row = layout.row(align=True)
 
             # inputs get icon on the left
-            if socket.in_out == 'IN':
+            if not socket.is_output:
                 row.template_node_socket(color)
 
             row.label(text=socket.name, icon_value=icon)
 
             # outputs get icon on the right
-            if socket.in_out == 'OUT':
+            if socket.is_output:
                 row.template_node_socket(color)
 
         elif self.layout_type in {'GRID'}: