From dfeddd35498e637c5eab517a440eae3a65d591b4 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Sat, 13 Apr 2013 17:36:31 +0000 Subject: Node editor: create the toolbar area right at the start in node space, in order to show the '+' icon for expanding. --- source/blender/editors/space_node/space_node.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/editors/space_node/space_node.c') diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c index 86cf9d98e78..680d577a3b6 100644 --- a/source/blender/editors/space_node/space_node.c +++ b/source/blender/editors/space_node/space_node.c @@ -306,6 +306,15 @@ static SpaceLink *node_new(const bContext *UNUSED(C)) 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"); -- cgit v1.2.3