Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-03-19 14:03:52 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-03-19 14:03:52 +0400
commit422ed073396e5d2e32add3eb8836c9456390bbea (patch)
tree0cd85a5f9014ecf7d1c83068196c488d277cef6e /source
parent4e93ac546f4463cae4a6c54e2319e6a0b4d28e8e (diff)
Fix for shader node sockets not displaying the name when unconnected. Default button draw implementation for node sockets should be to display just the name label.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_node/drawnode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index 0b02aef2fab..231a2ba646f 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -2786,7 +2786,7 @@ static void std_node_socket_interface_draw_color(bContext *UNUSED(C), PointerRNA
copy_v4_v4(r_color, std_node_socket_colors[type]);
}
-static void std_node_socket_draw(bContext *UNUSED(C), uiLayout *layout, PointerRNA *ptr, PointerRNA *UNUSED(node_ptr))
+static void std_node_socket_draw(bContext *C, uiLayout *layout, PointerRNA *ptr, PointerRNA *node_ptr)
{
bNodeSocket *sock = ptr->data;
int type = sock->typeinfo->type;
@@ -2816,6 +2816,10 @@ static void std_node_socket_draw(bContext *UNUSED(C), uiLayout *layout, PointerR
uiItemL(row, sock->name, 0);
break;
}
+
+ default:
+ node_socket_button_label(C, layout, ptr, node_ptr);
+ break;
}
}