[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42708] trunk/blender: Removed buttons in node headers for hiding unused sockets and for hiding the (non-socket) option buttons.

Lukas Toenne lukas.toenne at googlemail.com
Sun Dec 18 18:59:17 CET 2011


Revision: 42708
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42708
Author:   lukastoenne
Date:     2011-12-18 17:59:04 +0000 (Sun, 18 Dec 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_node.py
    trunk/blender/source/blender/editors/space_node/node_draw.c

Modified: trunk/blender/release/scripts/startup/bl_ui/space_node.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_node.py	2011-12-18 15:34:06 UTC (rev 42707)
+++ trunk/blender/release/scripts/startup/bl_ui/space_node.py	2011-12-18 17:59:04 UTC (rev 42708)
@@ -156,6 +156,7 @@
         layout.operator("node.mute_toggle")
         layout.operator("node.preview_toggle")
         layout.operator("node.hide_socket_toggle")
+        layout.operator("node.options_toggle")
 
         layout.separator()
 

Modified: trunk/blender/source/blender/editors/space_node/node_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_draw.c	2011-12-18 15:34:06 UTC (rev 42707)
+++ trunk/blender/source/blender/editors/space_node/node_draw.c	2011-12-18 17:59:04 UTC (rev 42708)
@@ -642,26 +642,6 @@
 		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) 




More information about the Bf-blender-cvs mailing list