Revision: 56018
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56018
Author:   lukastoenne
Date:     2013-04-13 17:36:31 +0000 (Sat, 13 Apr 2013)
Log Message:
-----------
Node editor: create the toolbar area right at the start in node space, in order 
to show the '+' icon for expanding.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_node/space_node.c

Modified: trunk/blender/source/blender/editors/space_node/space_node.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/space_node.c        
2013-04-13 16:32:28 UTC (rev 56017)
+++ trunk/blender/source/blender/editors/space_node/space_node.c        
2013-04-13 17:36:31 UTC (rev 56018)
@@ -306,6 +306,15 @@
        ar->regiontype = RGN_TYPE_UI;
        ar->alignment = RGN_ALIGN_RIGHT;
 
+       /* toolbar */
+       ar = MEM_callocN(sizeof(ARegion), "node tools");
+
+       BLI_addtail(&snode->regionbase, ar);
+       ar->regiontype = RGN_TYPE_TOOLS;
+       ar->alignment = RGN_ALIGN_LEFT;
+
+       ar->flag = RGN_FLAG_HIDDEN;
+
        /* main area */
        ar = MEM_callocN(sizeof(ARegion), "main area for node");
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to