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>2011-12-18 21:59:04 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2011-12-18 21:59:04 +0400
commit24785cc16ad8dc4b97189bbb2d056253e7f7b1da (patch)
tree00be390793728fed7016a1332e5b33be2f3ece8c /source
parent5f6bd44c82bef24a43696449d8b905beeb53015b (diff)
Removed buttons in node headers for hiding unused sockets and for hiding the (non-socket) option buttons. These are rarely used buttons that only complicate the UI. Alternatively these operators can still be accessed in the Node menu of the node editor window, "Toggle Hidden Node Sockets" and "Toggle Node Options" respectively.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_node/node_draw.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 7c3e4ad5c54..08e073494bb 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -642,26 +642,6 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
uiButSetFunc(but, node_toggle_button_cb, node, (void*)"NODE_OT_group_edit");
uiBlockSetEmboss(node->block, UI_EMBOSS);
}
- /* option buttons */
- if(node->typeinfo->flag & NODE_OPTIONS) {
- uiBut *but;
- iconofs-=iconbutw;
- uiBlockSetEmboss(node->block, UI_EMBOSSN);
- but = uiDefIconBut(node->block, TOGBUT, B_REDR, ICON_BUTS,
- iconofs, rct->ymax-NODE_DY, iconbutw, UI_UNIT_Y, NULL, 0, 0, 0, 0, "");
- uiButSetFunc(but, node_toggle_button_cb, node, (void*)"NODE_OT_options_toggle");
- uiBlockSetEmboss(node->block, UI_EMBOSS);
- }
- /* hide unused sockets */
- {
- uiBut *but;
- iconofs-=iconbutw;
- uiBlockSetEmboss(node->block, UI_EMBOSSN);
- but = uiDefIconBut(node->block, TOGBUT, B_REDR, ICON_PLUS,
- iconofs, rct->ymax-NODE_DY, iconbutw, UI_UNIT_Y, NULL, 0, 0, 0, 0, "");
- uiButSetFunc(but, node_toggle_button_cb, node, (void*)"NODE_OT_hide_socket_toggle");
- uiBlockSetEmboss(node->block, UI_EMBOSS);
- }
/* title */
if(node->flag & SELECT)