[Bf-blender-cvs] [86fb4243d11] functions: cleanup

Jacques Lucke noreply at git.blender.org
Mon Jul 22 18:13:01 CEST 2019


Commit: 86fb4243d119b7bcbbc4020963c3592466dfaa68
Author: Jacques Lucke
Date:   Mon Jul 22 12:37:31 2019 +0200
Branches: functions
https://developer.blender.org/rB86fb4243d119b7bcbbc4020963c3592466dfaa68

cleanup

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

M	release/scripts/startup/nodes/sockets.py

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

diff --git a/release/scripts/startup/nodes/sockets.py b/release/scripts/startup/nodes/sockets.py
index 8ce8a6d69c2..63886d7a6be 100644
--- a/release/scripts/startup/nodes/sockets.py
+++ b/release/scripts/startup/nodes/sockets.py
@@ -133,27 +133,19 @@ ObjectListSocket = create_simple_data_socket(
 class EmitterSocket(bpy.types.NodeSocket, BaseSocket):
     bl_idname = "bp_EmitterSocket"
     bl_label = "Emitter Socket"
-
-    def draw_color(self, context, node):
-        return (1, 1, 1, 1)
+    color = (1, 1, 1, 1)
 
 class EventSocket(bpy.types.NodeSocket, BaseSocket):
     bl_idname = "bp_EventSocket"
     bl_label = "Event Socket"
-
-    def draw_color(self, context, node):
-        return (0.2, 0.8, 0.2, 1)
+    color = (0.2, 0.8, 0.2, 1)
 
 class ControlFlowSocket(bpy.types.NodeSocket, BaseSocket):
     bl_idname = "bp_ControlFlowSocket"
     bl_label = "Control Flow Socket"
-
-    def draw_color(self, context, node):
-        return (0.8, 0.2, 0.2, 1)
+    color = (0.8, 0.2, 0.2, 1)
 
 class ParticleModifierSocket(bpy.types.NodeSocket, BaseSocket):
     bl_idname = "bp_ParticleModifierSocket"
     bl_label = "Particle Modifier Socket"
-
-    def draw_color(self, context, node):
-        return (0.8, 0.8, 0.2, 1)
+    color = (0.8, 0.8, 0.2, 1)



More information about the Bf-blender-cvs mailing list