[Bf-blender-cvs] [b75552ebbbf] master: UI: Draw socket type colors on the left in group sockets list

Hans Goudey noreply at git.blender.org
Thu Jan 14 23:49:34 CET 2021


Commit: b75552ebbbf695e24eeee92767639b8d097e9626
Author: Hans Goudey
Date:   Thu Jan 14 16:49:20 2021 -0600
Branches: master
https://developer.blender.org/rBb75552ebbbf695e24eeee92767639b8d097e9626

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.

===================================================================

M	release/scripts/startup/bl_ui/space_node.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index e6af83b61f4..a9934850acd 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -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)



More information about the Bf-blender-cvs mailing list