diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-10-10 16:58:35 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-10-10 16:58:35 +0400 |
commit | 3b7d5a8a405e4a2e5fbb0e7cd89d50306db17c27 (patch) | |
tree | c21ed1c0b805243f87b938b3a0b90f0194df8235 /release/scripts/templates_py | |
parent | 2a549285633f390da44051bbee2f8d5abf693396 (diff) |
Change to node output socket drawing: Instead of always drawing only the socket label for outputs, leave this check up to the socket type draw function. This gives custom node scripts more flexibility in
how to draw socket values by allowing buttons on output sockets as well.
http://wiki.blender.org/index.php/Extensions:2.6/Py/API_Changes#Python_Node_Output_Drawing
Diffstat (limited to 'release/scripts/templates_py')
-rw-r--r-- | release/scripts/templates_py/custom_nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/templates_py/custom_nodes.py b/release/scripts/templates_py/custom_nodes.py index 5f002f37161..975ae1881f2 100644 --- a/release/scripts/templates_py/custom_nodes.py +++ b/release/scripts/templates_py/custom_nodes.py @@ -40,7 +40,7 @@ class MyCustomSocket(NodeSocket): # Optional function for drawing the socket input value def draw(self, context, layout, node, text): - if self.is_linked: + if self.is_output or self.is_linked: layout.label(text) else: layout.prop(self, "myEnumProperty", text=text) |